{"id":15137886,"url":"https://github.com/timjentzsch/bevy_mod_bbcode","last_synced_at":"2026-03-15T16:02:22.960Z","repository":{"id":249546558,"uuid":"831811337","full_name":"TimJentzsch/bevy_mod_bbcode","owner":"TimJentzsch","description":"Use BBCode-formatted text in Bevy.","archived":false,"fork":false,"pushed_at":"2024-11-30T13:55:26.000Z","size":5161,"stargazers_count":15,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T22:15:55.820Z","etag":null,"topics":["bbcode","bevy","bevy-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimJentzsch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T17:22:22.000Z","updated_at":"2025-01-10T17:14:03.000Z","dependencies_parsed_at":"2024-07-26T11:45:40.031Z","dependency_job_id":null,"html_url":"https://github.com/TimJentzsch/bevy_mod_bbcode","commit_stats":null,"previous_names":["timjentzsch/bevy_mod_bbcode"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fbevy_mod_bbcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fbevy_mod_bbcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fbevy_mod_bbcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimJentzsch%2Fbevy_mod_bbcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimJentzsch","download_url":"https://codeload.github.com/TimJentzsch/bevy_mod_bbcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237834642,"owners_count":19373761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bbcode","bevy","bevy-plugin"],"created_at":"2024-09-26T07:03:19.484Z","updated_at":"2025-10-23T13:30:56.071Z","avatar_url":"https://github.com/TimJentzsch.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bevy_mod_bbcode\n\nRich text support in Bevy using a custom [BBCode](https://en.wikipedia.org/wiki/BBCode) markup flavor.\n\n## Bevy Compatibility\n\n| `bevy` version | `bevy_mod_bbcode` version |\n| -------------- | ------------------------- |\n| `0.15`         | `0.3`                     |\n| `0.14`         | `0.1` - `0.2`             |\n\n## Installation\n\n```cli\ncargo add bevy_mod_bbcode\n```\n\n## Usage\n\nInstead of spawning `Text`, spawn `Bbcode`!\n\n```rs\nuse bevy::prelude::*;\nuse bevy_mod_bbcode::{Bbcode, BbcodePlugin, BbcodeSettings};\n\nfn main() {\n    App::new()\n        // Register the font files stored in `assets/fonts`\n        .add_plugins((DefaultPlugins, BbcodePlugin::new().with_fonts(\"fonts\")))\n        .add_systems(Startup, setup)\n        .run();\n}\n\nfn setup(mut commands: Commands) {\n    commands.spawn(Camera2d);\n\n    commands.spawn((Bbcode::new(\n        r\"test [b]bold[/b] with [i]italic[/i] and [c=#ff00ff]color[/c]\"),\n        // Use the \"Fira Sans\" font family with a default font size of 40\n        BbcodeSettings::new(\"Fira Sans\", 40., Color::WHITE),\n    ));\n}\n```\n\nSee `examples` for more usage patterns!\n\n### Supported Tags\n\n- `b`: \\[b]**bold**\\[/b] text\n- `i`: \\[i]_italic_\\[/i] text\n- `c`: \\[c=\\#ff0000]\u003cspan style=\"color: red\"\u003ecolored\u003c/span\u003e\\[/c] text\n  - Register named colors via `ResMut\u003cColorMap\u003e` and use the names instead of hex values\n- `m`: \\[m=foo]text with marker component\\[/m]\n  - Register marker components via `BbcodeSettings::with_marker` and use them to update text dynamically\n- `font`: \\[font=\"Fira Sans\"]change the font family\\[/font]\n\n## License\n\nThis project is licensed under the terms of the [MIT](LICENSE-MIT) or [Apache 2.0](LICENSE-APACHE) license at your choice.\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n\nNote that the assets used in the examples might use different licenses, see [`assets/CREDITS.md`](assets/CREDITS.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjentzsch%2Fbevy_mod_bbcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimjentzsch%2Fbevy_mod_bbcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimjentzsch%2Fbevy_mod_bbcode/lists"}