FlightGear Newsletter October 2013: Difference between revisions

Jump to navigation Jump to search
m
Line 162: Line 162:


== Wiki updates ==
== Wiki updates ==
Philosopher has brought native Nasal syntax highlighting support to the wiki by creating a GeSHi config file for Nasal.
Philosopher has brought native Nasal syntax highlighting support to the wiki by creating a GeSHi config file for Nasal. We can now use the <syntaxhighight> tag with a lang="nasal" attribute to highlight Nasal code properly. Simply insert code between tags this:
Using the <syntaxhighight> tag with a lang="nasal" attribute, we can have highlighting right here on the wiki. Use enclose="div" to wrap the text, if it happens to be particularly wide.


  <nowiki><syntaxhighlight lang="nasal">
  <nowiki><syntaxhighlight lang="nasal">
Line 170: Line 169:
</syntaxhighlight></nowiki>
</syntaxhighlight></nowiki>


Which renders into:
And it renders into this:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
# hello.nas
# hello.nas
Line 177: Line 176:


We will be running a scripted bot to update all our existing uses of "php" markup to use "nasal" instead.
We will be running a scripted bot to update all our existing uses of "php" markup to use "nasal" instead.
To learn more, see [[Howto:Syntax highlighting for Nasal]].
To learn more, see [[Howto:Syntax highlighting for Nasal]]. Here's a little example showing various highlighted items:


<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
# this is a comment
# this is a comment
# operators (if applicable):
# operators:
!a ? a+b - c/d*e : f~g;
!a ? a+b - c/d*e : f~g;
# Builtin functions, strings
# Builtin functions, strings
395

edits

Navigation menu