There is a plugin installed that allows syntax highlighting. The BBCode for it is
The BBCode button for it looks like [], in the reply editor
Python
[shcode=python]
class Ship:
def __init__(self, sheet):
self.frames = strip_from_sheet(sheet, (0,0), (122,164), 4, 4)
self.frame_index = 0
self.update()
def update(self):
self.image = self.frames[self.frame_index]
def get_event(self, event):
if event.type == pg.KEYDOWN:
self.frame_index += 1
def draw(self, screen):
screen.blit(self.image, (0,0))
[/shcode]
XML
[shcode=xml]
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
[/shcode]
Regular code box
ActionScript3 : as3
Bash/shell : bash
ColdFusion : cf
C# : c-sharp
C++ : cpp
CSS : css
Delphi : delphi
Diff : diff
Erlang : erlang
Groovy : groovy
JavaScript : jscript
Java : java
JavaFX : javafx
Perl : perl
PHP : php
Plain Text : plain
PowerShell : ps
Python : python
Ruby : rails
SQL : sql
Scala : scala
Visual Basic : vbnet
XML : xml
[shcode=python]CODE HERE[/shcode]EDIT:
The BBCode button for it looks like [], in the reply editor
Python
[shcode=python]
class Ship:
def __init__(self, sheet):
self.frames = strip_from_sheet(sheet, (0,0), (122,164), 4, 4)
self.frame_index = 0
self.update()
def update(self):
self.image = self.frames[self.frame_index]
def get_event(self, event):
if event.type == pg.KEYDOWN:
self.frame_index += 1
def draw(self, screen):
screen.blit(self.image, (0,0))
[/shcode]
XML
[shcode=xml]
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
[/shcode]
Regular code box
class Ship: def __init__(self, sheet): self.frames = strip_from_sheet(sheet, (0,0), (122,164), 4, 4)Supported Languages :
ActionScript3 : as3
Bash/shell : bash
ColdFusion : cf
C# : c-sharp
C++ : cpp
CSS : css
Delphi : delphi
Diff : diff
Erlang : erlang
Groovy : groovy
JavaScript : jscript
Java : java
JavaFX : javafx
Perl : perl
PHP : php
Plain Text : plain
PowerShell : ps
Python : python
Ruby : rails
SQL : sql
Scala : scala
Visual Basic : vbnet
XML : xml
Recommended Tutorials: