Difference between revisions of "GeSHi highlighting"

From Dragon Age Toolset Wiki
Jump to: navigation, search
Line 7: Line 7:
 
Example:
 
Example:
  
 +
DAscript:
 
<dascript>
 
<dascript>
 
void main()
 
void main()
Line 14: Line 15:
 
</dascript>
 
</dascript>
  
 
+
NWScript:
 
<nwscript>
 
<nwscript>
 
void main()
 
void main()

Revision as of 22:32, 16 July 2009

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.

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/