Forum formatting source code is strange

Are they alternative syntax for code highlighting / mark source code??? The default indent with four spaces is boring and seems not to work in every case…

See: How to create Syncthing test environments

You want to use the triple backticks and no indent;

```
code code
```

You can even set some common languages for syntax highlighting

```bash
some bash code
```

Test:

```#!python
for i in range(5):
    print "jo"
```

Yes it works:

for i in range(5):
    print "jo"

Thanks!

… btw. IMHO we should create a help page on the forum about the forum and about the wiki style documentation section…

List are also a little bit strange:

  • ~/syncthing_test/
    • instance1/     * /syncthing_configs/config.xml   * instance2/     * /syncthing_configs/config.xml

Source:

* ~/syncthing_test/
  * instance1/
    * /syncthing_configs/**config.xml**
  * instance2/
    * /syncthing_configs/**config.xml**

Lists are fine, but you are confusing it, probably with pasted spaces or something. Your “source” part looks fine copied and pasted:

  • ~/syncthing_test/
    • instance1/
      • /syncthing_configs/config.xml
    • instance2/
      • /syncthing_configs/config.xml

It’s just markdown…

  • ~/syncthing_test/   * instance1/     * /syncthing_configs/config.xml   * instance2/     * /syncthing_configs/config.xml

I didn’t see the error :frowning:

Here a screenshot:

EDIT: It also copy&paste from above…

Your spaces aren’t real spaces but some unicode space character that looks like a space. Perhaps you’re cut & pasting from Word or something? Type it in and it works.

No, just firefox under win 8…

EDIT: Maybe CR+LF vs LF error?

copy&paste under linux:

  • ~/syncthing_test/
    • instance1/
      • /syncthing_configs/config.xml
    • instance2/
      • /syncthing_configs/config.xml

Hm…

Another test: http://johnmacfarlane.net/babelmark2/?text=+~%2Fsyncthing_test%2F%0A+++instance1%2F%0A+++++%2Fsyncthing_configs%2Fconfig.xml%0A+++instance2%2F%0A++++*+%2Fsyncthing_configs%2Fconfig.xml#results

and copy&paste the same content here:

  • ~/syncthing_test/   * instance1/     * /syncthing_configs/config.xml   * instance2/     * /syncthing_configs/config.xml

again marked as code:

* ~/syncthing_test/
  * instance1/
    * /syncthing_configs/**config.xml**
  * instance2/
    * /syncthing_configs/**config.xml**

strange… isn’t it?

Works perfectly for me when I copy from there. Your browser is doing something strange. You can trivially verify that by typing in what you think you are pasting in. Yes?

Anyway. Not developing the forum here. These guys are, maybe take it up with them if you think there’s something wrong with the markdown renderer: http://meta.discourse.org/.

I posted is there: