More actions
| Line 204: | Line 204: | ||
In the rare case your code or text has some templates or wiki-code you don't want to format, but still want to be able to add your own wiki commands you can take this even further by adding {{co|violet|<nowiki>}} to the opening pre-line and {{co|violet|</nowiki>}} in the closing part then wrap any individual wiki-code inside with the reverse {{co|violet|</nowiki>}} wiki-code {{co|violet|<nowiki>}} markup. | In the rare case your code or text has some templates or wiki-code you don't want to format, but still want to be able to add your own wiki commands you can take this even further by adding {{co|violet|<nowiki>}} to the opening pre-line and {{co|violet|</nowiki>}} in the closing part then wrap any individual wiki-code inside with the reverse {{co|violet|</nowiki>}} wiki-code {{co|violet|<nowiki>}} markup. | ||
Since this opens up for html-tags as well as wiki-markups it might be necessary to break up tags or replace equal signs to get the parsed result to your liking. This can be done by using {{co|slateblue|&lt;}} instead of {{co|violet|<}} and {{co|slateblue|&gt;}} instead of {{co|violet|>}} for tags plus {{co|slateblue|&#61;}} instead of {{co|violet|=}} for the equal sign. | Since this opens up for html-tags as well as wiki-markups it might be necessary to break up tags or replace equal signs to get the parsed result to your liking. This can be done by using {{co|slateblue|&lt;}} instead of {{co|violet|<}} and {{co|slateblue|&gt;}} instead of {{co|violet|>}} for tags plus {{co|slateblue|&#61;}} instead of {{co|violet|=}} for the equal sign. Technically you only need to break the tag in one place to achieve this, like using {{co|slateblue|<pre&gt;}} as this will be enough for the parser to ignore the incomplete tag, but sometimes it's worth changing both brackets to avoid any potential problems with the rest of the code. | ||
= Useful HTML-codes = | = Useful HTML-codes = | ||