diff --git a/documentation/content/Components/code-style-highlight-lines.md b/documentation/content/Components/code-style-highlight-lines.md new file mode 100644 index 00000000..09a21bb1 --- /dev/null +++ b/documentation/content/Components/code-style-highlight-lines.md @@ -0,0 +1,39 @@ +--- +Title: Code Snippets -- Highlight Lines +Tags: markdown, code-snippets, gist +Date: 2020-02-02 20:12 +comments: false +Slug: code-snippets-highlight-lines +authors: Talha Mansoor +Category: Components +--- + +[Python-Markdown](https://github.com/Python-Markdown/markdown/) uses +[CodeHilite](https://python-markdown.github.io/extensions/code_hilite/) +extension for syntax highlighting. + +This extension lets you highlight specific lines in your code snippets. You can read the instructions [here](https://python-markdown.github.io/extensions/code_hilite/#colons). + +Elegant supports this feature. + + :::python hl_lines="1 3" + # This line is emphasized + # This line isn't + # This line is emphasized + +Another example, + + :::html hl_lines="2" +