Highlighting of lines of code using BBCode

For everything not directly related to UOX3; Such as official UO, other emus, and everyday chatter about stuff. And whatnot.
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Highlighting of lines of code using BBCode

Post by Xuri »

I've implemented a phpBB mod which allows the usage of BBCodes within the [ code ] and [ /code ] tags.

Example:

Code: Select all

function onSpeech( myString, myPlayer, myNPC )
{
	if( SubStringSearch( myString, "Hi" ) || SubStringSearch( myString, "Greetings" ) || SubStringSearch( myString, "Hello" ) || SubStringSearch( myString, "Hail" ))
	{
		[color=yellow]myNPC.TurnToward( myPlayer );[/color]
		myNPC.TextMessage( "Hello!" );
	}
}
Just use the [ color=yellow ] and [ /color ] (without spaces, obviously) tags to highlight specific lines :) You may, of course, use other colors than yellow - though I think it stands out nicely.
-= Ho Eyo He Hum =-
Post Reply