Howto:Syntax highlighting for Nasal: Difference between revisions

Jump to navigation Jump to search
m
→‎gedit: remove omega95's website link
m (reasons for using syntaxhighlighting)
m (→‎gedit: remove omega95's website link)
Line 23: Line 23:
'''Philosopher''' on the FlightGear Forum has created syntax highlighting for gedit, a popular and simple text editor for Mac OS X, Linux, and Windows.
'''Philosopher''' on the FlightGear Forum has created syntax highlighting for gedit, a popular and simple text editor for Mac OS X, Linux, and Windows.


http://theomegahangar.flymerlion.com/downloads/nasal.lang
<!--http://theomegahangar.flymerlion.com/downloads/nasal.lang -->
To install, copy the ''nasal.lang'' file <!--from the link above or--> from the first post of the forum topic [http://www.flightgear.org/forums/viewtopic.php?f=30&t=17265#p164133] 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.


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).
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 will be used inside of certain tags, instead of plain text).


For "snippets" support, nasal.xml from the above post has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder or installed using the "import" feature. See this image for more details: [[:File:Install nasal snippets in gedit.png|how to import Nasal snippets]].
For "snippets" support, nasal.xml from the above post has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder or installed using the "import" feature. See this image for more details: [[:File:Install nasal snippets in gedit.png|how to import Nasal snippets]].
395

edits

Navigation menu