Richard Smith 4daaa4866f Rename `Type` -> `type`, per #2360. (#2507) 3 yıl önce
..
README.md fc0d7a84db Fix link rendering for correct display in GitHub (#1666) 3 yıl önce
highlightjs_carbon_lang.js 4daaa4866f Rename `Type` -> `type`, per #2360. (#2507) 3 yıl önce
highlightjs_example.html 4daaa4866f Rename `Type` -> `type`, per #2360. (#2507) 3 yıl önce

README.md

Highlighting utilities

This directory collects syntax highlighting utilities for use with Carbon code.

highlight.js

This JavaScript syntax highlighting system is used on webpages or in presentation software like reveal.js.

The code is in highlightjs_carbon_lang.js, and you can use it by registering it after you load highlight.js:

<script type="module">
    import Carbon from './highlightjs_carbon_lang.js';
    hljs.registerLanguage('Carbon', Carbon);
    hljs.highlightAll();
</script>

See highlightjs_example.html for a more complete example.

It includes many Carbon-specific markup indicators that may be useful to customize display or highlighting of Carbon code.