Achieving continuous code blocks in Dokuwiki

154 views Asked by At

I am aware that one can display code blocks with <code></code> or <file></file>. This usually works quite well. Unfortunately I was trying to paste a nginx configuration file and these directives break the code randomly into different blocks. Is there no way to display the entire config file in one block?

2

There are 2 answers

0
Ho Zong On BEST ANSWER

You can put the whole code inside <code>...</code> block.

Note that you can use syntax coloring also, to give the code language also, like <code perl>, a lot of languages are supported, but I'm not sure what to use for that config file. You may give a try to use for example ini, to have quotes colored at least. Here is the list of supported languages: http://qbnz.com/highlighter/

2
i716 On

Correct, I was talking about the CODE and FILE block. But I have found the mistake. The beginning of the CODE block must be indented. Then it works as expected.