User's Guide to Sponge Forum's Text Formatting [Guide]


#21

Hm, possibly. Anyone else agree this should be added?


#22

I think tables are Github flavoured markdown, Not regular markdown.


#23

tables are not a part of the original markdown spec (nor CommonMark, for that matter) but are purely a third-party extension so I don't know why you would expect them to work...

EDIT whoops sorry didn't mean to pile on I didn't read the post above me before posting


#24

Nono, it's fine. Thanks for the update @nightpool @WetSponge. Much Appreciated.


#25

There are 'spoilers' which don't seem to work properly on Firefox, but here's to the Chrome users.

<details>Magic.</details> =

Magic.

<details><summary> :tophat:</summary>Magic!!</details> =
tophatMagic!!

I apologise for the necropost, I felt that spoilers needed to be uncovered since it's such a useful thing in other forum software.


#26

Another necro, sorry about this, but the 'spoilers' don't work on Internet Explorer 11 or Edge (Windows 10 browser)

As they only work on Chrome, it's probably best not to use them @IronManDoesMC.


#27

This is a spoiler tag

code to make this work:
[spoiler]This is a spoiler tag[/spoiler]


#28

public class Java {
    public static void main(String[] args) {
        System.out.println("This is a formatted code block.");
        // It even has syntax highlighting
    }
}

You can select a language to highlight your code's syntax.
I don't know the whole list of supported languages, but "java" works.
It also gives you the advantage of not having to add whitespace before each line.

```language
Code
```

#29

@CrazyPyroEagle, @Tzk's way seems to work.


#30

Setting the language using the code blocks to "plain" disables syntax highlighting.

```plain
public static void main(String[] args) {
    System.out.println("Hello World!")
}
```

Result

public static void main(String[] args) {
    System.out.println("Hello World!");
}

I'm posting this because there are still a few people who use code blocks with plain text but forget to remove syntax highlighting.