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?
Achieving continuous code blocks in Dokuwiki
148 views Asked by i716 At
2
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 exampleini
, to have quotes colored at least. Here is the list of supported languages: http://qbnz.com/highlighter/