Skip to content
SWR 2.0 is out! Read more →
Docs
Code highlighting

Code highlighting

Test filename, line highlighting and empty lines

console.log('hello world')
 
 
 
 
 
 
console.log('goodbye world')

Test showLineNumbers and word highlighting

object Hello {
  def main(args: Array[String]) = {
    println("hello, world")
  }
}
 
object Hello {
  def main(args: Array[String]) = {
    println("hello, world")
  }
}

Test highlighting inline code

import React from 'react'

Test without specified language

hello world

Test link in code

Link to google

Link to GitHub

💪 content from `config.bodyExtraContent`