Howto:Syntax highlighting for Nasal: Difference between revisions

Jump to navigation Jump to search
m
→‎gEdit: typically not capitalized at all, OSX->OS X, other edits
m (stress testing is my specialty ;)
m (→‎gEdit: typically not capitalized at all, OSX->OS X, other edits)
Line 17: Line 17:
Get it here: https://sourceforge.net/projects/fgscheduleview/files/jedit/catalog.zip/download
Get it here: https://sourceforge.net/projects/fgscheduleview/files/jedit/catalog.zip/download


==gEdit==
== gedit ==


[[File:Philosopher's nasal highlighting in gEdit.jpeg|400px|thumb|Screen shot illustrating syntax highlighting in gEdit]]
[[File:Philosopher's nasal highlighting in gEdit.jpeg|400px|thumb|Screen shot illustrating syntax highlighting in gedit]]


'''Philosopher''' on the FlightGear Forum has created a syntax highlighter for gEdit- a popular and simple Text Editor for Mac OSX and Linux.
'''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


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 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] (possibly more recent) and:


If you use Mac, move it into your ''Applications/gedit/Contents/Resources/share/gtksourceview-2.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 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).
And for linux, move it into your ''/usr/share/gtksourceview-X.0/language-specs'' folder.
 
nasal.xml has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder and edit ''/usr/share/gtksourceview-X.0/language-specs/xml.lang'' to add the embedded xml content support.
For "snippets" support, nasal.xml has to be moved into ''/usr/share/gedit/plugins/snippets/'' folder.


== Vim ==
== Vim ==
395

edits

Navigation menu