📜 ⬆️ ⬇️

Parser improvements

Now you can insert the code. To make it work, the code must be inserted into the tag.
< code >

</ code >

Otherwise, the tags will eat parser

Example:
// <font color> code
$jevix->cfgAllowTags(array( 'font' ));
$jevix->cfgSetTagChilds( 'code' , array( 'font' ), false , true );
$jevix->cfgAllowTagParams( 'font' , array( 'color' ));


* This source code was highlighted with Source Code Highlighter .
// <font color> code
$jevix->cfgAllowTags(array( 'font' ));
$jevix->cfgSetTagChilds( 'code' , array( 'font' ), false , true );
$jevix->cfgAllowTagParams( 'font' , array( 'color' ));


* This source code was highlighted with Source Code Highlighter .

read more
In the future, we are going to embed syntax highlighting on Habr, but for now, to get colored code, I advise you to use services like Source Code Highlighter .

Also, several minor bugs were fixed, including:
  1. point in the .htaccess file
  2. dots after question? .. and exclamation! .. signs

PS The <pre> tag also works. It can be used to display as-is text. Preserving spaces and line breaks:
 <html>
      / \ / _ _
    _oo \
   | ___- /)
       || - ||
 </ html>


')

Source: https://habr.com/ru/post/36864/


All Articles