1
0
silverbullet/website/Markdown/Syntax Highlighting.md
2023-01-25 09:54:14 +01:00

615 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!");
}
fn myFun() {
   
}
<MyTag attribute="cool">

</MyTag>
class MyClass {


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