silverbullet/website/Markdown/Syntax Highlighting.md

777 B

SilverBullet comes with syntax highlighters for various programming languages. This page demonstrates some:

name: Pete
function myFunc() {
   console.log("Hello World!");
}
function myFunc(name: string) {
   console.log("Hello", name);
}
select * from my_table;
class MyClass {

}
fn main() {
    // Print text to the console
    println!("Hello World!");
}
func myFunc() {
   print("Hello World!")
}
<MyTag attribute="cool">

</MyTag>
<b>Regular HTML</b>
class MyClass {


}
void main() {
  print('Hello, World!');
}
void main() {

}
class BankAccount
  attr_accessor :balance, :account_holder
end