Howto:Syntax highlighting for Nasal: Difference between revisions

Jump to navigation Jump to search
m
m (→‎gEdit: typically not capitalized at all, OSX->OS X, other edits)
Line 25: Line 25:
http://theomegahangar.flymerlion.com/downloads/nasal.lang
http://theomegahangar.flymerlion.com/downloads/nasal.lang


Download the ''nasal.lang'' file from the link above or from the first post of this forum topic [http://www.flightgear.org/forums/viewtopic.php?f=30&t=17265] (possibly more recent) and:
Download the ''nasal.lang'' file from the link above or from the first post of this forum topic [http://www.flightgear.org/forums/viewtopic.php?f=30&t=17265#p164133] (possibly more recent) and:


If you use Mac, move it into your ''Applications/gedit/Contents/Resources/share/gtksourceview-X.0/language specs'' folder. For Linux, move it into your ''/usr/share/gtksourceview-X.0/language-specs'' folder. In the post at [http://forum.flightgear.org/viewtopic.php?f=30&t=17265#p164133], there are instructions for how to edit ''xml.lang'' (in the same directory) to add the embedded XML content support (with this minor edit, Nasal highlighting is used inside of certain tags instead of plain text).
If you use Mac, move it into your ''Applications/gedit/Contents/Resources/share/gtksourceview-X.0/language specs'' folder. For Linux, move it into your ''/usr/share/gtksourceview-X.0/language-specs'' folder. In the same post given above, there are instructions for how to edit ''xml.lang'' (in the same directory) to add the embedded XML content support (with this minor edit, Nasal highlighting is used inside of certain tags instead of plain text).


For "snippets" support, nasal.xml has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder.
For "snippets" support, nasal.xml has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder.
395

edits

Navigation menu