395
edits
m (→Wiki updates) |
Philosopher (talk | contribs) m (→Wiki updates) |
||
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: | ||
<nowiki><syntaxhighlight lang="nasal"> | <nowiki><syntaxhighlight lang="nasal"> | ||
Line 170: | Line 169: | ||
</syntaxhighlight></nowiki> | </syntaxhighlight></nowiki> | ||
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 | # operators: | ||
!a ? a+b - c/d*e : f~g; | !a ? a+b - c/d*e : f~g; | ||
# Builtin functions, strings | # Builtin functions, strings |
edits