+++ title = "Code" description = "" weight = 4 +++ Add code to your page with syntax highlighting and a copy button so your users can easily copy the code to their clipboard with the press of a button. The code may be entered inside the shortcode or come from an external file. {{< code lang="html" >}}
I'm inside a code shortcode. Check out my syntax highlighting!.
lang="html"
#### *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: file="code/mycode.html"
.