Formatting tricks for StackOverflow and GitHib – Reinventing the text editor

Back in the early 90’s people invented a program called rich text editor. In it you could format text to be bold, italic. Paragraphs were also available.

Then years went by, the rich editors got better and better until they culminated with really powerful and eye candy editors like MS Word.

In parallel Linux came up and everybody went have to plain text editors. Because well… Linux gurus get over excited and their Tourette syndrome get activated when they see graphic interfaces.

And then the internet came up. And it screwed up things even worst. The Internet did not agree with Linux guys. It wanted graphic interfaces. But graphic interfaces are hard to program (nit for Delphi guys) so the mighty Internet reinvented the basic text editor. First it got bold text, then italic, then links came up. In the end they managed to implement basic (I mean really basic) rich text editors. Took them 20 years to do what Microsoft did in 1 year.

But when the Linux guys discovered the internet they said no again to the rich text editors and reinvented their own mark up language.
Congratu-fuking-lation guys! It is that difficult to put a small tool bar with 4-5 buttons to do basic things such as bold and links?

So, here is the documentation about how to format the text for those two platforms.

GitHub

URLs
This is how you create a [link](www.SomeRandomSite.com)

Images
![Image description](www.SomeRandomSite.com/image.jpg)

Lists
You can make an unordered list by preceding one or more lines of text with - * or +

Bold
**Some bold text**

Italic
*Some italic text*

Strikethrough
~~Some text~~

Quote
> Starts with “greater than”

Code
    ` ` `
// Use three quotes
function IsItTrue
Begin
Result:= True;
End
` ` `

Nested lists
1. First list item
– First nested list item
– Second nested list item

Click here to see the whole list of commands.


StackOverflow

Linebreaks
Two spaces of <br/>

URLs
This is how you create a [link](www.SomeRandomSite.com)
Or simply type the URL into the text body.

Images
![Image description](www.SomeRandomSite.com/image.jpg)

Lists
You can make an unordered list by preceding one or more lines of text with - * or +

Bold
**Some bold text**

Italic
*Some italic text*

Strikethrough
Not available

Quote
> Starts with “greater than”

Code
   <code>
// Use three quotes
function IsItTrue
Begin
Result:= True;
End
</code>

You can also enter 3 spaces. You can also use <pre> for preformated text.

Nested lists
1. First list item
– Indent 4 spaces
– Second nested list item

Click here to see the whole list of commands.


Fuck you guys for reinventing the wheel!

Leave a Comment

Scroll to Top