Home | Post archive | About | Uses | Links | Now | Tags | RSS

Test scratchpad post

Published: 2024-10-08

Last Modified: 2024-11-21 21:51 UTC

This is just a test

This post is mainly just to test features and options, don’t mind it!

Working is ranty.
And now, some code:

pythonesco.py
1
import random
2
3
secret_number = random.randint(1, 100)
4
5
while True:
6
guess = int(input("Guess the number between 1 and 100: "))
7
8
if guess == secret_number:
9
print("Congratulations! You guessed the number!")
10
break
11
elif guess < secret_number:
12
print("Too low! Try again.")
13
else:
14
print("Too high! Try again.")
my-test-file.js
1
console.log('This code is syntax highlighted!')
Terminal window
1
ANSI colors:
2
- Regular: Red Green Yellow Blue Magenta Cyan
3
- Bold: Red Green Yellow Blue Magenta Cyan
4
- Dimmed: Red Green Yellow Blue Magenta Cyan
5
6
256 colors (showing colors 160-177):
7
160 161 162 163 164 165
8
166 167 168 169 170 171
9
172 173 174 175 176 177
10
11
Full RGB colors:
12
ForestGreen - RGB(34, 139, 34)
13
14
Text formatting: Bold Dimmed Italic Underline

Email me about this post.