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...')
 
Line 13: Line 13:
 
}
 
}
 
</dascript>
 
</dascript>
 +
 +
 +
<nwscript>
 +
void main()
 +
{
 +
    SendMessageToPC(GetEnteringObject(), "Hello world");
 +
}
 +
</nwscript>
  
  
 
Geshi homepage: http://qbnz.com/highlighter/
 
Geshi homepage: http://qbnz.com/highlighter/

Revision as of 22:31, 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:

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


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


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