Difference between revisions of "GeSHi highlighting"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with 'GeSHi highlighting allows you to specify blocks of content as a particular programming language and have it highlighted appropriately. We have installed syntax highlighting fo...')
 
m (Sunjammer moved page GeSHI highlighting to GeSHi highlighting without leaving a redirect)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
GeSHi highlighting allows you to specify blocks of content as a particular programming language and have it highlighted appropriately.   
 
GeSHi highlighting allows you to specify blocks of content as a particular programming language and have it highlighted appropriately.   
  
We have installed syntax highlighting for NWN scripting and DA scripting!  just use either the "dascript" or "nwscript" tags around your code.
+
We have installed syntax highlighting for NWN scripting and DA scripting!  Just use either the "dascript" or "nwscript" tags around your code. (like so: <nowiki><dascript>Dragon Age script code</dascript></nowiki> and <nowiki><nwscript>NWN script code</nwscript></nowiki>)
  
 
'''NOTE:''' the dascript highlighting is copied/pasted from the nwscript one; we are looking for contributions/improvements to match what is actually in DAscripts!
 
'''NOTE:''' the dascript highlighting is copied/pasted from the nwscript one; we are looking for contributions/improvements to match what is actually in DAscripts!
Line 7: Line 7:
 
Example:
 
Example:
  
 +
DAscript:
 
<dascript>
 
<dascript>
 
void main()
 
void main()
Line 13: Line 14:
 
}
 
}
 
</dascript>
 
</dascript>
 +
 +
NWScript:
 +
<nwscript>
 +
void main()
 +
{
 +
    SendMessageToPC(GetEnteringObject(), "Hello world");
 +
}
 +
</nwscript>
  
  
 
Geshi homepage: http://qbnz.com/highlighter/
 
Geshi homepage: http://qbnz.com/highlighter/

Latest revision as of 21:27, 12 December 2017

GeSHi highlighting allows you to specify blocks of content as a particular programming language and have it highlighted appropriately.

We have installed syntax highlighting for NWN scripting and DA scripting! Just use either the "dascript" or "nwscript" tags around your code. (like so: <dascript>Dragon Age script code</dascript> and <nwscript>NWN script code</nwscript>)

NOTE: the dascript highlighting is copied/pasted from the nwscript one; we are looking for contributions/improvements to match what is actually in DAscripts!

Example:

DAscript:

void main()
{
    SendMessageToPC(GetEnteringObject(), "Hello world");
}

NWScript:

void main()
{
    SendMessageToPC(GetEnteringObject(), "Hello world");
}


Geshi homepage: http://qbnz.com/highlighter/