Skip to content

r3n4ud/pretty-java

Repository files navigation

pretty-java: a ConTeXt MkIV java syntax highlighting third party module

pretty-java

Description

pretty-java is a ConTeXt module and provides Java syntax highlighting.

Features

Java syntax highlighting.

Examples

\usemodule[t-pretty-java]
\setupbodyfont[8pt]

\starttext
\starttyping[option=java]
public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello, World");
    }

}
\stoptyping
\stoptext

A sample document is available here.

Requirements

You'll need the ConTeXt Standalone distribution. pretty-java may work with packaged ConTeXt but it has not been tested yet.

Install

At that early stage of development, I recommand to clone the repo and symlink the pretty-java directory to tex/texmf-modules/tex/context/third/pretty-java.

Contributing to pretty-java

  • Use pretty-java and report any issue with the Java snippet involved
  • Follow the usual fork/branch/PR workflow to send changes, if I like them I'll merge them

Copyright

Copyright (c) 2013 Renaud AUBIN

About

ConTeXt MkIV pretty-java third party module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages