💾 Archived View for scumware.cities.yesterweb.org › tips.gmi captured on 2022-06-11 at 20:54:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

🪐 Simple Guide to Gemtext

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.

Coloring text

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 - Black

31 - Red

32 - Green

33 - Yellow

34 - Blue

35 - Magenta

36 - Cyan

37 - White

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.