Syntax Highlighting + How-to 08-03-2013, 02:29 AM
#1
Syntax Highlighting works like this;
![[Image: eSy89Uh.png]](http://i.imgur.com/eSy89Uh.png)
![[Image: bikb.png]](http://img404.imageshack.us/img404/8607/bikb.png)
![[Image: eSy89Uh.png]](http://i.imgur.com/eSy89Uh.png)
![[Image: bikb.png]](http://img404.imageshack.us/img404/8607/bikb.png)
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]
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]
(This post was last modified: 08-03-2013, 07:16 AM by Oni.)
![[Image: GiXvY27.png]](http://i.imgur.com/GiXvY27.png)




![[+]](https://sinister.li/images/modern/collapse_collapsed.png)