CodeIgniter Forums
Jquery Question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: Jquery Question (/showthread.php?tid=66586)



Jquery Question - wolfgang1983 - 11-08-2016

On stack over flow when you ask a question in there editor wmd  if you have code to put you can either add 4 spaces and will go in code format or add `backtick at start and at end of code.

I would like to know if any one knows how to replicate that for jquery. I also use codemirror.

Thank you


RE: Jquery Question - InsiteFX - 11-08-2016

See the jQuery .append() and .prepend() methods


RE: Jquery Question - Paradinight - 11-11-2016

(11-08-2016, 01:40 AM)wolfgang1983 Wrote: On stack over flow when you ask a question in there editor wmd  if you have code to put you can either add 4 spaces and will go in code format or add `backtick at start and at end of code.

I would like to know if any one knows how to replicate that for jquery. I also use codemirror.

Thank you

It called Markdown.
https://en.wikipedia.org/wiki/Markdown

Markdown Editor:
- https://github.com/NextStepWebs/simplemde-markdown-editor
- https://code.google.com/archive/p/pagedown/

Markdown to html:
https://packagist.org/search/?q=markdown&orderBys[0][sort]=downloads&orderBys[0][order]=desc