Howto:Syntax highlighting for Nasal: Difference between revisions

Jump to navigation Jump to search
m
→‎Emacs: https://forum.flightgear.org/viewtopic.php?f=30&t=41115&p=409029#p409029
m (The Visual Studio Code extension changed its name)
m (→‎Emacs: https://forum.flightgear.org/viewtopic.php?f=30&t=41115&p=409029#p409029)
Line 32: Line 32:


Reload .emacs via <code>'''M-x''' load-file</code> or by restarting Emacs.
Reload .emacs via <code>'''M-x''' load-file</code> or by restarting Emacs.
Update: 01/2023: Tip for Emacs users (installation of the Nasal support ELisp file present in SimGear):
* copy https://sourceforge.net/p/flightgear/simgear/ci/next/tree/simgear/nasal/misc/nasal-mode.el to (for instance) ~/lisp/manual-installs/nasal-mode.el (or make the latter a symlink to simgear/nasal/misc/nasal-mode.el, assuming you have the SimGear repository checked out somewhere on your hard drive);
* add the following to your Emacs initialization file (e.g., ~/.emacs.d/init.el):
<code>
(add-to-list 'load-path "~/lisp/manual-installs")
(require 'nasal-mode)
</code>
* optionally: open ~/lisp/manual-installs/nasal-mode.el and choose Byte-compile this file from the Emacs-Lisp menu (or run M-x byte-compile-file);
* restart Emacs.
The '''true''' and '''false''' keywords introduced in 01/2023 are already supported.<ref>https://forum.flightgear.org/viewtopic.php?f=30&t=41115&p=409029#p409029</ref>


== Geany ==
== Geany ==

Navigation menu