This is a post with code in it


Post with cool code

I'm adding this post to test the rendering of code snippets in markdown files.

Testing with C++

int main() {
	std::cout << "Hello world!\n";
	return 0;
}

Testing with C

int main(){
	printf("Hello world!\n");
	return 0;
}

Testing with Javascript

const printHelloWorld = () => {
	console.log("Hello world!");
};

printHelloWorld();

Test inline code fragments

This text will have some inline code fragments like this one: std::cout << "Hello world\n";. I need this to be sure that these parts of the text don't look weird. These are useful when I want to use the name of a function like printHelloWorld(); or when naming a variable like int a;. This inline code fragments are really important, if you ask me. It is weird when you are scrolling a post and then int a = std::max(b, c); appears and ends up looking ugly and breaking the flow of the text.

This is it for this test posts.