Tapestry Syntax Highlighter

Package that integrates into Apache Tapestry 5 the Prism syntax highlighter written byLea Verou

License

License

Categories

Categories

Tape Data Data Structures
GroupId

GroupId

br.com.arsmachina
ArtifactId

ArtifactId

tapestry-syntax-highlighter
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Tapestry Syntax Highlighter
Package that integrates into Apache Tapestry 5 the Prism syntax highlighter written byLea Verou
Project Organization

Project Organization

Ars Machina Tecnologia da Informação Ltda.
Source Code Management

Source Code Management

https://github.com/thiagohp/tapestry-syntax-highlighter.git

Download tapestry-syntax-highlighter

How to add to project

<!-- https://jarcasting.com/artifacts/br.com.arsmachina/tapestry-syntax-highlighter/ -->
<dependency>
    <groupId>br.com.arsmachina</groupId>
    <artifactId>tapestry-syntax-highlighter</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/br.com.arsmachina/tapestry-syntax-highlighter/
implementation 'br.com.arsmachina:tapestry-syntax-highlighter:0.0.1'
// https://jarcasting.com/artifacts/br.com.arsmachina/tapestry-syntax-highlighter/
implementation ("br.com.arsmachina:tapestry-syntax-highlighter:0.0.1")
'br.com.arsmachina:tapestry-syntax-highlighter:jar:0.0.1'
<dependency org="br.com.arsmachina" name="tapestry-syntax-highlighter" rev="0.0.1">
  <artifact name="tapestry-syntax-highlighter" type="jar" />
</dependency>
@Grapes(
@Grab(group='br.com.arsmachina', module='tapestry-syntax-highlighter', version='0.0.1')
)
libraryDependencies += "br.com.arsmachina" % "tapestry-syntax-highlighter" % "0.0.1"
[br.com.arsmachina/tapestry-syntax-highlighter "0.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.apache.tapestry : tapestry-core jar 5.4-alpha-20

Project Modules

There are no modules declared in this project.

tapestry-syntax-highlighter

Package that integrates the Prism (http://prismjs.com/) syntax highlighter written by Lea Verou into Apache Tapestry 5.

To use it, just add the JAR in the classpath and add the syntax-highlighter/SyntaxHighlighter mixin to any component (including the Any one). You can use its enabled parameter to enable or disable it using custom logic if needed.

By default, it uses the default theme and adds the Line Highlight plugin. To change this, create your own version of Prism using the form at http://prismjs.com/download.html and override the SyntaxHighlighter.DEFAULT_JAVASCRIPT_FILE_PATH and/or SyntaxHighlighter.DEFAULT_JAVASCRIPT_FILE_PATH Tapestry-IoC symbols to point to your versions of these files.

Versions

Version
0.0.1