Ignore one line, or force one line syntax

37 views
Skip to first unread message

Yves Amsellem

unread,
Aug 28, 2017, 7:02:18 AM8/28/17
to highlight.js
Hi,


Is there a way to ignore a line?

document.querySelector('#list');
→ <ul>..</ul>

In here, the second line is just a comment, and it could be helpful to tell the highlighter that this line should not be considered.
Better: it could be cool to tell it what lang it is. To force one lang on a line, cause on those kind of example, the automatic language detection fails from time to time.

This should be one block, of course.
Thanks for your help.
--
yves 
Reply all
Reply to author
Forward
0 new messages