December 12, 20241 min read

Code Syntax Highlighting Demo 2

How to Write Code Deneme

You can add code blocks by wrapping your code with three backticks (```) followed by the language name.

Python Example

def hello_world(): print("Hello World!") return True

JavaScript Example

const website = "My Portfolio"; console.log(`Welcome to ${website}`); // This is a comment function add(a, b) { return a + b; }

HTML Example

<div class="container"> <h1>Hello World</h1> <p>This is a paragraph.</p> </div>

Comments (0)

Loading comments...