class HLJS extends StatefulSnippet with Loggable
Hightlight JS Snippet
This snippet class contains a collection of functions for common transform operations useful when working with the Higlight toolkit components. Example Invoke with
data-lift="FoBo.JLJS.functionName?paramName=paramValue&...."For more examples see the individual transform functions.
- Since
v1.6
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- HLJS
- Loggable
- StatefulSnippet
- DispatchSnippet
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new HLJS()
Type Members
-
type
DispatchIt = PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- DispatchSnippet
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addName(name: String): Unit
- Definition Classes
- StatefulSnippet
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
dispatch: PartialFunction[String, (NodeSeq) ⇒ NodeSeq]
- Definition Classes
- HLJS → DispatchSnippet
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
initHighlightingOnLoad: CssSel
Lift 3+ only -- This function initiates the Higlight code sections by appending a script snippet to lift's page-script on page load function.
Lift 3+ only -- This function initiates the Higlight code sections by appending a script snippet to lift's page-script on page load function.
Example
<script data-lift="FoBo.HLJS.initHighlightingOnLoad"></script>Result: This example will result in the following being appended to lift's page-script on page load function:
$('pre code').each(function(i, block) { hljs.highlightBlock(block); });- Since
v1.6
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
link(to: String, func: () ⇒ Any, body: NodeSeq, attrs: liftweb.http.SHtml.ElemAttr*): Elem
- Definition Classes
- StatefulSnippet
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- Loggable
- Annotations
- @transient()
-
def
names: Set[String]
- Definition Classes
- StatefulSnippet
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
redirectTo(where: String): Nothing
- Definition Classes
- StatefulSnippet
-
def
registerThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
def
seeOther(where: String): Nothing
- Definition Classes
- StatefulSnippet
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregisterThisSnippet(): Unit
- Definition Classes
- StatefulSnippet
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )