1
0
silverbullet/website/Markdown/Syntax Highlighting.md

63 lines
648 B
Markdown
Raw Normal View History

2023-01-25 08:54:14 +00:00
SilverBullet comes with syntax highlighters for various programming languages. This page demonstrates some:
```yaml
name: Pete
```
```javascript
function myFunc() {
console.log("Hello World!");
}
```
```typescript
function myFunc(name: string) {
console.log("Hello", name);
}
```
```sql
select * from my_table;
```
```c++
class MyClass {
}
```
```rust
fn main() {
// Print text to the console
println!("Hello World!");
}
```
```swift
fn myFun() {
}
```
```xml
<MyTag attribute="cool">
</MyTag>
```
2023-08-15 06:53:09 +00:00
```html
<b>Regular HTML</b>
```
2023-01-25 08:54:14 +00:00
```kotlin
class MyClass {
}
```
```dart
void main() {
print('Hello, World!');
}
```