diff options
author | Lars Kruse <devel@sumpfralle.de> | 2020-09-13 19:37:59 +0300 |
---|---|---|
committer | Lars Kruse <devel@sumpfralle.de> | 2020-09-13 21:33:14 +0300 |
commit | 604d755b77ee6a5ad7649326d0634b4a6062e528 (patch) | |
tree | 1a7ddd2574b8450d7a5ab4ba181a41bbf4ad2c7e /exampleSite/content/shortcodes/doublecode.md | |
parent | 9d951f6d6763bed0a7861eae798bbbc0b3488b5d (diff) |
Strip superfluous whitespace
Diffstat (limited to 'exampleSite/content/shortcodes/doublecode.md')
-rw-r--r-- | exampleSite/content/shortcodes/doublecode.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/exampleSite/content/shortcodes/doublecode.md b/exampleSite/content/shortcodes/doublecode.md index 0b6642b..bb8232b 100644 --- a/exampleSite/content/shortcodes/doublecode.md +++ b/exampleSite/content/shortcodes/doublecode.md @@ -4,7 +4,7 @@ description = "" weight = 6 +++ -The *doublecode* shortcode works the same as the [code](/shortcodes/code/) shortcode, but extends the functionality by also rendering the code in the page. This is useful for showing the code of HTML elements in your page. +The *doublecode* shortcode works the same as the [code](/shortcodes/code/) shortcode, but extends the functionality by also rendering the code in the page. This is useful for showing the code of HTML elements in your page. {{< doublecode lang="html" >}} <div class="mydiv bg-primary shadow text-white p-3 m-4 border-primary"> @@ -27,10 +27,10 @@ Simply place the following shortcode on the page ### Parameters #### *lang* -The lang parameter defines the language to be used for code highlighting. You can find a complete list of supported languages <a href="https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages" target="_blank">here</a>. - +The lang parameter defines the language to be used for code highlighting. You can find a complete list of supported languages <a href="https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages" target="_blank">here</a>. + Example: <code>lang="html"</code> #### *file* -The file parameter allows you to define an external file that contains your code to be displayed. This is done by giving a path to that file, starting from the root directory of your site. -For example, a HTML file named *'mycode.html'* you wish to link that is in the *docs/code/* directory can be defined as follows: <code>file="code/mycode.html"</code>.
\ No newline at end of file +The file parameter allows you to define an external file that contains your code to be displayed. This is done by giving a path to that file, starting from the root directory of your site. +For example, a HTML file named *'mycode.html'* you wish to link that is in the *docs/code/* directory can be defined as follows: <code>file="code/mycode.html"</code>. |