You can specify a custom language definition by putting the below text (with ...
replaced with the rest of the language definition) in ~/.local/share/gtksourceview-3.0/language-specs/thingy.lang
:
<?xml version="1.0" encoding="UTF-8"?>
<language id="thingy" _name="Thingy Code" version="2.0" _section="Sources">
<metadata>
<property name="line-comment-start"># </property>
...
</metadata>
<styles>
...
</styles>
<definitions>
...
</definitions>
</language>
You'll probably want to base your language spec off of one of the langage specs in /usr/share/gtksourceview-3.0/language-specs/
, since it's kind of a pain to get a working language spec from scratch (especially since the XML parser error messages are anywhere from useless to worse).
line-comment-start
string for a specific gtksourceview language definition? – Fasano