aboutsummaryrefslogtreecommitdiff
path: root/content/overview-code-blocks.md
diff options
context:
space:
mode:
authorJieiku2025-02-02 21:30:23 -0800
committerJieiku2025-02-02 21:30:23 -0800
commit2aa5a83686880e947a6614a42f93550d96b1f87f (patch)
tree0a55e8aae25f88d6d963da3af4e15bcbcf326e43 /content/overview-code-blocks.md
parente77219e6fb57fa956971e3ce4a76aad2a25a3000 (diff)
downloadabridge-2aa5a83686880e947a6614a42f93550d96b1f87f.tar.gz
abridge-2aa5a83686880e947a6614a42f93550d96b1f87f.tar.bz2
abridge-2aa5a83686880e947a6614a42f93550d96b1f87f.zip
Add and Update Translations
Diffstat (limited to 'content/overview-code-blocks.md')
-rw-r--r--content/overview-code-blocks.md37
1 files changed, 26 insertions, 11 deletions
diff --git a/content/overview-code-blocks.md b/content/overview-code-blocks.md
index 5d0f19f..0d1728d 100644
--- a/content/overview-code-blocks.md
+++ b/content/overview-code-blocks.md
@@ -30,6 +30,7 @@ See [the docs](https://www.getzola.org/documentation/content/syntax-highlighting
If we want, we can also `specify inline code` which is useful for `the small stuff`.
### Rust
+
```rust
fn main() {
let greetings = ["Hello", "Hola", "Bonjour",
@@ -72,17 +73,8 @@ fn main() {
}
```
-### Bash
-```bash,hl_lines=5
-#!/bin/bash
-for d in /sys/kernel/iommu_groups/*/devices/*; do
- n=${d#*/iommu_groups/*}; n=${n%%/*}
- printf 'IOMMU Group %s ' "$n"
- lspci -nns "${d##*/}"
-done
-```
-
### TOML
+
```toml,linenos,hl_lines=3
base_url = "https://abridge.netlify.app/"
title = "Abridge"
@@ -99,7 +91,19 @@ taxonomies = [
]
```
+### Bash
+
+```bash,hl_lines=5
+#!/bin/bash
+for d in /sys/kernel/iommu_groups/*/devices/*; do
+ n=${d#*/iommu_groups/*}; n=${n%%/*}
+ printf 'IOMMU Group %s ' "$n"
+ lspci -nns "${d##*/}"
+done
+```
+
### HTML
+
```html
<!doctype html>
<html lang="en">
@@ -115,6 +119,7 @@ taxonomies = [
```
### CSS
+
```css
html {
font-size: var(--fs);
@@ -126,6 +131,7 @@ html {
```
### SCSS
+
```scss
$font: Roboto system-ui -apple-system BlinkMacSystemFont "Segoe UI" Oxygen Ubuntu Cantarell "Fira Sans" "Droid Sans" "Helvetica Neue" "Noto Sans" Helvetica Arial sans-serif !default;
@@ -147,6 +153,7 @@ $font-mono: ui-monospace Menlo Monaco Consolas "SF Mono" "Cascadia Mono" "Segoe
```
### Javascript
+
```javascript
function closeSearch() {//close the search displaying the regular page.
const e = document.querySelector("main");
@@ -166,6 +173,7 @@ function goSearch() {// on enter key or search icon click display results to the
```
### PHP
+
```php
<?php
/**
@@ -189,8 +197,8 @@ $_SESSION['PFA_token'] = md5(uniqid("pfa" . rand(), true));
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
```
-
### Json
+
```json
{
"name": "Abridge Zola Theme",
@@ -223,6 +231,7 @@ $_SESSION['PFA_token'] = md5(uniqid("pfa" . rand(), true));
```
### SQL
+
```sql
-- jelly-actix-web-starter - Creates an accounts table, along with some associated helpers.
@@ -255,6 +264,7 @@ for each row execute procedure update_timestamp();
```
### Lua
+
```lua
function square(x)
return x * x
@@ -274,6 +284,7 @@ print(getPlayerInformation())
```
### C
+
```c
#include <stdio.h>
int main() {
@@ -286,6 +297,7 @@ int main() {
```
### C++
+
```cpp
// Your First C++ Program
@@ -301,6 +313,7 @@ int main() {
```
### Go
+
```go
package main
@@ -314,6 +327,7 @@ func main() {
```
### Python
+
```python
#!/usr/bin/env python3
import smtplib, socket
@@ -369,6 +383,7 @@ while True:
```
### Ruby
+
```ruby
=begin
Ruby program to check whether the