💾 Archived View for scumware.cities.yesterweb.org › tips.gmi captured on 2023-01-29 at 02:57:03. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Okay, well, you're actually gonna get most of your information from this official guide to gemtext markup.
A quick introduction to "gemtext" markup
There are just a few extra things I feel like mentioning because I haven't been able to find anyone else mentioning these... I just ended up finding this out on my own.
You may have noticed some users (including me) using colored text on some sections of our capsules. Either that, or your browser doesn't support colors and you just see random out-of-place bits of code. To color text, you need to use ANSI escape codes before the text you want to color.
The main format for these color codes is as follows:
(U+001B)[0;FG;BGm
(U+001B) is the sequence for the unicode character ESCAPE.
Replace 'FG' with the number for the color you want the text to be.
Replace 'BG' with the number for the color you want the background to be.
Remember, there's no closing bracket after 'm'.
You can find a full list of color codes here on Wikipedia:
Wikipedia - ANSI escape codes - Colors
I'll write out some basic foreground color codes here though.
30 - [0;30mBlack
31 - [0;31mRed
32 - [0;32mGreen
33 - [0;33mYellow
34 - [0;34mBlue
35 - [0;35mMagenta
36 - [0;36mCyan
37 - [0;37mWhite
Depending on the client you use, it may or may not have support for ANSI escape codes. This method works perfectly fine for Lagrange, whereas it only affects preformatted text on Amfora. It doesn't work at all on Deedum.
I'm not super great at explaining, so feel free to view the page source for a better view of what I'm talking about.
More to come when I think of it.