Skip to content

Instantly share code, notes, and snippets.

@thibaultmol
Created January 2, 2026 16:07
Show Gist options
  • Select an option

  • Save thibaultmol/60b9a81f7673b620c341a5f901bb9515 to your computer and use it in GitHub Desktop.

Select an option

Save thibaultmol/60b9a81f7673b620c341a5f901bb9515 to your computer and use it in GitHub Desktop.
test.md

Thibault, here are very small samples for each of the 50 languages, using the standard identifier to activate highlighting.

  1. bash
#!/bin/bash
echo "Hello, World"
  1. c
#include <stdio.h>
int main() { printf("Hi"); return 0; }
  1. cpp
#include <iostream>
int main() { std::cout << "Hi"; return 0; }
  1. csharp
using System;
Console.WriteLine("Hello World");
  1. css
body {
  background-color: #f0f0f0;
  color: #333;
}
  1. diff
- var x = 1;
+ var x = 2;
  1. dockerfile
FROM node:18
WORKDIR /app
COPY . .
  1. go
package main
import "fmt"
func main() { fmt.Println("Hi") }
  1. graphql
type Query {
  me: User
}
  1. html
<!DOCTYPE html>
<html><body><h1>Hello</h1></body></html>
  1. ini
[settings]
theme = dark
font_size = 14
  1. java
public class Main {
    public static void main(String[] args) { }
}
  1. javascript
const greet = (name) => console.log(`Hello ${name}`);
greet('Thibault');
  1. json
{
  "name": "Thibault",
  "id": 123
}
  1. jsx
const Button = () => <button>Click me</button>;
  1. kotlin
fun main() {
    println("Hello, World!")
}
  1. latex
\documentclass{article}
\begin{document}
Hello World $E=mc^2$
\end{document}
  1. less
@base: #f938ab;
.box { color: @base; }
  1. lua
function hello()
  print("Hello World")
end
  1. makefile
build:
	gcc main.c -o main
  1. markdown
# Title
**Bold text** and [Link](url)
  1. matlab
x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y)
  1. nginx
server {
    listen 80;
    server_name example.com;
}
  1. objective-c
#import <Foundation/Foundation.h>
int main() { NSLog(@"Hello"); return 0; }
  1. perl
#!/usr/bin/perl
print "Hello, world!\n";
  1. php
<?php
echo "Hello World";
?>
  1. powershell
Write-Host "Hello, World"
Get-Process | Where-Object {$_.Id -gt 1000}
  1. python
def greet(name):
    return f"Hello, {name}"
  1. r
data <- c(1, 2, 3, 4)
mean(data)
  1. ruby
def hello
  puts "Hello World"
end
  1. rust
fn main() {
    println!("Hello, world!");
}
  1. sass
$font-stack: Helvetica, sans-serif
body
  font: 100% $font-stack
  1. scala
object Hello extends App {
  println("Hello, World!")
}
  1. scss
$primary-color: #333;
body { color: $primary-color; }
  1. shell
export PATH=$PATH:/local/bin
echo $USER
  1. sql
SELECT * FROM users WHERE name = 'Thibault';
  1. swift
let message = "Hello, World!"
print(message)
  1. toml
[package]
name = "hello_world"
version = "0.1.0"
  1. tsx
interface Props { name: string; }
const App: React.FC<Props> = ({ name }) => <div>{name}</div>;
  1. typescript
let isDone: boolean = false;
function add(x: number, y: number): number { return x + y; }
  1. vb
Module Module1
    Sub Main()
        Console.WriteLine("Hello World")
    End Sub
End Module
  1. vim
set number
syntax on
let g:variable = 1
  1. vue
<template>
  <div>{{ message }}</div>
</template>
  1. xml
<note>
  <to>Thibault</to>
  <from>AI</from>
</note>
  1. yaml
name: Thibault
likes:
  - coding
  - markdown
  1. zig
const std = @import("std");
pub fn main() void {
    std.debug.print("Hello, {s}!\n", .{"World"});
}
  1. elixir
defmodule Hello do
  def world, do: IO.puts "Hello World"
end
  1. haskell
main :: IO ()
main = putStrLn "Hello, World!"
  1. dart
void main() {
  print('Hello, World!');
}
  1. ocaml
let () = print_endline "Hello, World!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment