--- author: ["Aditya Telange"] title: "Code Syntax Guide" date: "2019-03-10" description: "Sample article showcasing basic code syntax and formatting for HTML elements." summary: "Sample article showcasing basic code syntax and formatting for HTML elements." tags: ["markdown", "syntax", "code", "gist"] categories: ["themes", "syntax"] series: ["Themes Guide"] ShowToc: true TocOpen: true --- ### Inline Code `This is Inline Code` ### Only `pre`
This is pre text
### Code block with backticks ```{hl_lines=[2,8]} Example HTML5 Document

Test

``` ### Code block with backticks and language specified ```html Example HTML5 Document

Test

``` ### Code block with backticks and language specified with line numbers ```html {linenos=true} Example HTML5 Document

Test

``` ### Code block with line numbers and highlighted lines - PaperMod supports `linenos=true` or `linenos=table` ```html {linenos=true,hl_lines=[2,8]} Example HTML5 Document

Test

``` - With `linenos=inline` line **might not** get highlighted properly. ```html {linenos=inline,hl_lines=[2,8]} Example HTML5 Document

Test

``` ### Code block indented with four spaces Example HTML5 Document

Test

### Code block with Hugo's internal highlight shortcode {{< highlight html >}} Example HTML5 Document

Test

{{< /highlight >}} ### Github Gist {{< gist adityatelange 376cd56ee2c94aaa2e8b93200f2ba8b5 >}}