How to highlight code in your blog

This article explains how to add programming code syntax highlighting to your code.

  1. Use the Code block toolbar icon and type or copy in some programming code.

  2. To syntax highlight for a specific language, add lang-php or lang-javascript or whatever as the very last line in your Code blok.

<?php
    echo "Hello World!";
lang-php

Screenshot:

how_to_use_syntax_highlighting_in_your_code.png 47.57 KB


Updated: 2 years ago

© 2022 Eugene's Blog