Fluent Syntax Highlighting¶
The fluent.pygments
library is built to do syntax highlighting
for Fluent files in Sphinx.
Installation¶
pip install fluent.pygments
Usage¶
.. code-block:: fluent
my-key = Localize { -brand-name }
Example¶
### A resource comment for the whole file
my-key = Localize { -brand-name }
-brand-name = Fluent
# $num is the number of strings to localize
plurals = { $num ->
[one] One string
*[other] {$num} strings
}
an error ;-)
Most-strings = are just simple strings.