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

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

2 Likes

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

1 Like

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

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

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

<details>Magic.</details> =

Magic.
`
:tophat:Magic!!
` =
:tophat:Magic!!

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

5 Likes

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.

[spoiler]This is a spoiler tag[/spoiler]

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

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
```
2 Likes

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

1 Like

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.