Syntax Highlighting
See hugo syntax highlighting for detailed instructions.
These examples are to help with theme design testing, their usage is standard markdown.
Wrap any text in a ` .
console.log("hello world!")
Wrap any text in ``` and ``` .
function helloWorld() {
console.log("hello world!");
}
helloWorld();All line highlighting is handled by passing options to the codeblocks
Here, we also have lineos set to false, so line numbers are not shown.
hcl {linenos=false,hl_lines=[2]}
resource "azurerm_nginx_certificate" "cert1" {
name = "examplecert"
nginx_deployment_id = azurerm_nginx_deployment.test.id
key_virtual_path = "/src/cert/soservermekey.key"
certificate_virtual_path = "/src/cert/server.cert"
key_vault_secret_id = azurerm_key_vault_certificate.test.secret_id
}hcl {linenos=true,hl_lines="2-4"}
|
|
hcl {linenos=true,hl_lines=[2,4,6]}
|
|