![]() |
|
Syntax Highlighting + How-to - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: General (https://sinister.li/Forum-General) +--- Forum: The Lounge (https://sinister.li/Forum-The-Lounge) +--- Thread: Syntax Highlighting + How-to (/Thread-Syntax-Highlighting-How-to) |
Syntax Highlighting + How-to - Sapientia - 08-03-2013 Syntax Highlighting works like this; ![]() ![]() Spoiler:
[code=vbnet] Dim TxtString as New String = "Hey" [/code] [code=php] <?php echo "Hey there!"; ?> [/code] [code=html] <html> <body> <h1>Hey!</h1> </body> </html> [/code] [code=csharp] string TheText = "Hey There!"; MessageBox.Show(TheText); [/code] [code=javascript] if(!Array.prototype.pop) { Array.prototype.pop = function() { lastElement = this[this.length-1]; this.length = Math.max(this.length-1,0); return lastElement; } } [/code] [code=css] body { background: #efefef; color: #000; font-family: Verdana, Arial, Sans-Serif; font-size: 13px; text-align: center; /* IE 5 fix */ line-height: 1.4; } [/code] [code=xml] <?xml version="1.0"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> [/code] |