Help:Formatting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (1 revision imported) |
Latest revision as of 03:01, 11 October 2023
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