Skip to content

[Language Addition] BBCode #7134

@RokeJulianLockhart

Description

@RokeJulianLockhart

This replaces @Janmm14's github.com/github-linguist/linguist/issues/3516:

Please see the guidelines to add support for a new language to Linguist. If bbcode meets the requirement on in-the-wild usage, don't hesitate to open a pull request.

Language name

BBCode

URL of example repository

Because BBCode is utilised extensively across phpBB and vBulletin forums, its primary use case is in code snippets, like gist.github.com/betaveros/48588f5443ea664e3912/6d2a86a3d426a2f94b8b1d2671fa572fc3119e2c.

However, because the language can also be defined inline, with CommonMark's ~~~CSV equivalent to a <pre><code>, its absence causes github/markup/issues/1851.

URL of syntax highlighting grammar

  1. github.com/Ernir/Kate-bbcode/blob/c325f2ea03d59c10257ba61c9aea6b6386c4b5c9/bbcode.xml

  2. github.com/highlightjs/highlightjs-bbcode/blob/e4b537ab2fb0594061200dcf60df506cec3edbb7/bbcode.js#L1-L38 constitutes official support.

  3. vim.org/scripts/script.php?script_id=2109

Most popular extensions

.BBCode would the applicable extension, because none have been standardised.

Detected language

Currently, text/plain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Add LanguageGood First IssueThis is a great opportunity to start contributing to Linguist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions