Help:Formatting
Jump to navigation
Jump to search
Syntax highlighting
Use the <source></source> tags.
Example:
<source lang="lb">
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end
</source>
results in:
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end
Supported Languages
| Language | lang attribute value |
|---|---|
| Liberty BASIC 5.x and above | lb5 |
| Liberty BASIC 4.x and below | lb, lb4 |
| Just BASIC | jb |
| Run BASIC | rb |
Highlight Lines of Code
Highlight single Line
Example:
<source lang="lb" highlight="3">
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end
</source>
results in:
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end
Highlight multiple Lines
Example:
<source lang="lb" highlight="[1,3]">
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end
</source>
results in:
' a simple example
input "What is your name? "; YourName$
print "Your name is: "; YourName$
end