diff options
Diffstat (limited to 'content/overview-code-blocks.fr.md')
| -rw-r--r-- | content/overview-code-blocks.fr.md | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/content/overview-code-blocks.fr.md b/content/overview-code-blocks.fr.md index 0a40e4e..1263d05 100644 --- a/content/overview-code-blocks.fr.md +++ b/content/overview-code-blocks.fr.md @@ -30,6 +30,7 @@ Voir [les docs](https://www.getzola.org/documentation/content/syntax-highlightin Si nous voulons, nous pouvons aussi `spécifier le code en ligne` ce qui est utile pour `les petites choses`. ### Rust + ```rust fn main() { let greetings = ["Hello", "Hola", "Bonjour", @@ -72,21 +73,12 @@ fn main() { } ``` -### Bash -```bash -#!/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" -description = "Abridge est un thème Zola rapide et léger utilisant le HTML sémantique, le CSS abridge.css class-light et aucun JS obligatoire." +description = "Abridge is a fast and lightweight Zola theme using semantic html, abridge.css class-light CSS, and No Mandatory JS." default_language = "en" #theme = "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 |
