An open API service indexing awesome lists of open source software.

https://github.com/codelibs/jhighlight

JHighlight is an embeddable pure Java syntax highlighting library.
https://github.com/codelibs/jhighlight

Last synced: 3 months ago
JSON representation

JHighlight is an embeddable pure Java syntax highlighting library.

Awesome Lists containing this project

README

        

JHighlight
[![Java CI with Maven](https://github.com/codelibs/jhighlight/actions/workflows/maven.yml/badge.svg)](https://github.com/codelibs/jhighlight/actions/workflows/maven.yml)
==================

## Overview

JHighlight is an embeddable pure Java syntax highlighting library that supports Java, HTML, XHTML, XML and LZX languages and outputs to XHTML.
It also supports RIFE templates tags and highlights them clearly so that you can easily identify the difference between your RIFE markup and the actual marked up source.

This project is forked from https://jhighlight.dev.java.net/ to fix several bugs.

## Reference

The original jhighlight handles multi-byte characters as garbled one. To solve this problem, replace with CodeLibs jhighlight.

### Tika

Tika uses jhighlight to parse source code files, such as .java.
If a source code file has a multi-byte chracter, it becomes a garbled one.
To avoid this problem, change your pom.xml to:


org.apache.tika
tika-parsers
1.6


com.uwyn
jhighlight




org.codelibs
jhighlight
1.0.2