htmlwikidokuwiki

Achieving continuous code blocks in Dokuwiki


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?


Solution

  • 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/