Skip to content

Instantly share code, notes, and snippets.

@vaclavsvejcar
Created October 22, 2016 16:31
Show Gist options
  • Save vaclavsvejcar/ac120f8b160ca776340d8bb4910c9e4e to your computer and use it in GitHub Desktop.
Save vaclavsvejcar/ac120f8b160ca776340d8bb4910c9e4e to your computer and use it in GitHub Desktop.
import scala.scalajs.js
import scala.scalajs.js.annotation.JSName
package object highlightjs {
lazy val hljs: HighlightJs = js.Dynamic.global.hljs.asInstanceOf[HighlightJs]
@JSName("hljs")
@js.native
private[highlightjs] trait HighlightJs extends js.Object {
def initHighlighting(): Unit = js.native
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment