2 hours ago · Tech · 0 comments

One of the long-time problems that I frequently encounter in PmWiki is that it can’t keep the formatting as it is, especially regarding newlines.Sometimes, I just want to save text as it is, especially when making a simple list. Instead of adding tedious bullet points for each item, I’d rather simply put newlines like usual. But the PmWiki engine strips these newlines and reinterprets everything.To temporarily fix that, I use a certain built-in PmWiki syntax: [@ ... @]. This is called a “preformatted text block”. It’s derived from the built-in native HTML tag `<pre>`, which preserves all spaces, tabs, and line breaks exactly as they are typed in the source code.Lately, I have frequently used the folder + preformatted text block combination tag in order to store lot of lists. Something like :[[f:folderName]][@ .... @][[/f]] This so is tedious. So, to simplify it, I combined them into this: [[g:folderName]] ... [[/g]]// local/config.php Markup('g-open', 'directives',…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.