3
edits
(→Emacs: Consolidate instructions) |
(Added TextMate / IntelliJ (JetBrains) syntax highlighting sections) |
||
Line 141: | Line 141: | ||
{{-}} | {{-}} | ||
== Other editors == | == TextMate== | ||
[[File:Nasal syntax highlighting in TextMate.png|thumb|Screen shot illustrating syntax highlighting in TextMate]] | |||
[https://macromates.com/ TextMate] is a general-purpose GUI text editor for macOS created by Allan Odgaard. It is open source and free to use. | |||
There is a TextMate Bundle for Nasal available on [https://github.com/BobDotCom/Nasal.tmbundle GitHub] which can be [https://macromates.com/manual/en/bundles#installing_a_bundle installed in TextMate] for basic syntax highlighting. | |||
{{-}} | |||
==IntelliJ Family Editors (JetBrains)== | |||
[[File:Nasal syntax highlighting in PyCharm.png|thumb|Screenshot illustrating syntax highlighting in PyCharm]] | |||
[https://www.jetbrains.com/idea/ IntelliJ IDEA] is an integrated development environment written in Java for developing computer software written in Java, Kotlin, Groovy, and other JVM-based languages. It is developed by JetBrains and is available as an Apache 2 Licensed community edition, and in a proprietary commercial edition. | |||
Although there is not a native IntelliJ plugin for Nasal, IntelliJ supports [https://www.jetbrains.com/help/idea/textmate-bundles.html installing TextMate bundles] for syntax highlighting, so the [https://github.com/BobDotCom/Nasal.tmbundle Nasal TextMate Bundle] can be used. Installation instructions are available [https://www.jetbrains.com/help/webstorm/tutorial-using-textmate-bundles.html here]. | |||
There are many [https://www.jetbrains.com/products/ JetBrains products] that are based on IntelliJ such as [https://www.jetbrains.com/pycharm/ PyCharm] (Python) and [https://www.jetbrains.com/webstorm/ WebStorm] (Javascript). These IDEs can also be used with nasal syntax highlighting, in the same way as above. | |||
{{-}} | |||
==Other editors== | |||
Nasal being syntactically very close to other programming languages like C, Php or JavaScript, you can get some usable highlighting even without real Nasal support: | Nasal being syntactically very close to other programming languages like C, Php or JavaScript, you can get some usable highlighting even without real Nasal support: | ||
* TextMate {{forum link|hilit=syntax+nasal|p=127828}} | * TextMate {{forum link|hilit=syntax+nasal|p=127828}} | ||
* SciTe {{forum link|hilit=syntax+nasal|p=94521}} | *SciTe {{forum link|hilit=syntax+nasal|p=94521}} | ||
== FlightGear Wiki == | ==FlightGear Wiki== | ||
{{Note|As of 02/2016, we do not currently have a dedicated Nasal module available [http://wiki.flightgear.org/FlightGear_wiki:Village_pump/Archive_2016#Nasal_Syntaxhighlighting]}} | {{Note|As of 02/2016, we do not currently have a dedicated Nasal module available [http://wiki.flightgear.org/FlightGear_wiki:Village_pump/Archive_2016#Nasal_Syntaxhighlighting]}} | ||
{{main article|Help:Formatting#Syntax highlighting}} | {{main article|Help:Formatting#Syntax highlighting}} | ||
Line 154: | Line 172: | ||
<nowiki><syntaxhighlight lang="nasal"> | <nowiki><syntaxhighlight lang="nasal"> | ||
# hello.nas | # hello.nas | ||
print('Hello World!'); | print('Hello World!'); | ||
</syntaxhighlight></nowiki> | </syntaxhighlight></nowiki> | ||
Which renders into: | Which renders into: | ||
Line 164: | Line 182: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Syntax highlighting test == | ==Syntax highlighting test== | ||
Just a collection of keywords, etc. to test whether highlighting works (you can copy this to test your own highlighting): | Just a collection of keywords, etc. to test whether highlighting works (you can copy this to test your own highlighting): | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> | ||
Line 198: | Line 216: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Related content == | ==Related content== | ||
* {{forum url|p=164155}} | *{{forum url|p=164155}} | ||
* {{forum url|t=12495}} | *{{forum url|t=12495}} | ||
* {{forum url|t=15972}} | *{{forum url|t=15972}} | ||
* {{forum url|t=9812}} | *{{forum url|t=9812}} | ||
[[Category:Nasal howto]] | [[Category:Nasal howto]] | ||
<references /> |
edits