ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Remove prism as standard and insert info text #61

Closed ThomasTJdev closed 5 years ago

ThomasTJdev commented 5 years ago

Prism (code syntax highlighter) was initialized by JS. If .prismOn class was present, it would append CSS and JS files to HEAD and FOOTER for loading, after that the highlighter was called.

This solution was prone for error due to the order of download CSS and JSS and running the highlighter. Furtermore the prism function was called on every pageload to check for .prismOn.

New solution removes prism from core JS. An info text is now available, which should help the user on how to insert highlightet code snippers.

I have also removed auto indentation from codemirror (raw html editor), because it was making wrong indentation of code snippets.