niebert/Wiki2Reveal

Provide an example of displaying wiki computer code in presentation-mode

Opened this issue · 1 comments

bgctw commented

Thanks for this tool, which allows me to present wiki-content as a presentation.

However, I already failed in my first attempts using it, because I was not able to properly display computer code.
So far I tried:

<code> 
<pre> or
<syntaxhighlight>

but cold not convince wiki2reveal to acknowledge the line breaks.

Can you, please, provide a working example, e.g. linked at wiki2reveal's wikiversity site that presents computer code?

Good suggestion to extend to tags, Wiki2Reveal is currently a proof of concept for Math lectures. It makes sense to me to incorporate a real parser and tokenizer into Wiki2Reveal code and then create an Abstract Syntax Tree (AST) after tokenizing the source code. Afterwards a tree node handler can be specified for the set of alllowed tags. This allows a better extension and adaptation of Wiki2Reveal parser. Parsoid Javascript or PEG.js as Parser-generator are my current candidates. But it takes a bit of time to do that in a better software design than the current Proof of Concept..