Testing Code Blocks
This post tests syntax highlighting for different languages.
Python Code
def hello_world(name):
"""Prints a greeting."""
print(f"Hello, {name}!")
hello_world("Fabio")
JavaScript Code
function greet(name) {
console.log(`Hello, ${name}!`);
}
greet("Fabio");
C++ Code
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}