Code auto highlight test1

Posted on May 14, 2024 by nartix

testing code

console.log("hello world");

Code block:

document.body.addEventListener('htmx:afterSwap', function (event) {
  // Attempt to find an element with 'data-new-title' within the target
  var targetWithNewTitle = event.detail.target.querySelector('[data-new-title]');
  var newTitle = targetWithNewTitle ? targetWithNewTitle.getAttribute('data-new-title') : null;
  if (newTitle) {
    document.title = newTitle;
  }
});

testing long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long linetesting long line testing long line

Center Test

Testing Python code:

def encode_base64_key(id):
    return urlsafe_base64_encode(force_bytes(id))

def decode_base64_key(id):
    return force_str(urlsafe_base64_decode(id))
print(f"Hello World")

Test inline print(f"Hello World") sadfsdfasdf testing long line testing long line

print("hello world")

sc asdas asd asd asd sad

print(f"hello world")
<div> hello world </div>
<body></body>

php

$t = date("H");

if ($t < "20") {
  echo "Have a good day!";
}

Blockquote

testing blockquote

ddsdfsdf