Skip to main content
Source Link
Makyen
  • 25.6k
  • 8
  • 48
  • 85

Test using <!-- language: lang-none --> (i.e. should NOT have syntax highlighting)

Where indicated, the following sections are separately preceded by a line which contains <!-- language: lang-none -->, which should still prevent application of syntax highlighting. Note that using HTML comments to apply code formatting is deprecated.

In code fences
With <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');
Without <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');
Using 4 space indent
With <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');
Without <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');
In HTML <pre><code>
With <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');
Without <!-- language: lang-none -->
var parent=document.getElementById('parent');
var child=document.getElementById('child');
var preventChild=document.getElementById('preventChild');

All of the above function as expected in the preview below the text input while editing.

Post Made Community Wiki by Makyen