PrismCodeHighlighter

ba.sake.hepek.prismjs.PrismCodeHighlighter
See thePrismCodeHighlighter companion object
final case class PrismCodeHighlighter(lang: String, lineNumbers: Option[Int], lineHighlight: Option[(String, Int)], isMarkup: Boolean) extends BaseCodeHighlighter

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def withLineHighlight(lines: String, offset: Int): PrismCodeHighlighter

Inherited methods

def ajax(url: String): Frag

Fetches a file from url via AJAX.

Fetches a file from url via AJAX.

Attributes

Inherited from:
BaseCodeHighlighter
override def apply(text: String): Frag

Attributes

Definition Classes
Inherited from:
BaseCodeHighlighter
def gist(id: String, fileName: Option[String]): Frag

Value parameters

id

Id of the Gist, e.g. "65a82e76597f2fb6c2af"

Attributes

Inherited from:
BaseCodeHighlighter
def github(user: String, repo: String, filePath: String): Frag

Value parameters

filePath

Path of the file, e.g. "bla/index.js"

repo

User's repo, e.g. "focustube"

user

Github user, e.g. "TheAdnan"

Attributes

Inherited from:
BaseCodeHighlighter
def inline(text: String): Frag

Attributes

Inherited from:
BaseCodeHighlighter
def jsonp(url: String, fileName: Option[String]): Frag

Fetches a file from url via JSONP. Supported sites: Github, Gist, Bitbucket
Optionally provide gist fileName

Fetches a file from url via JSONP. Supported sites: Github, Gist, Bitbucket
Optionally provide gist fileName

Attributes

Inherited from:
BaseCodeHighlighter
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product