Code2HTML plugin

André Kaplan

Romain Francois

Legal Notice

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, Front-Cover Texts or Back-Cover Texts, each as defined in the license. A copy of the license can be found in the file COPYING.DOC.txt included with jEdit.


Table of Contents

Chapter 1. Presentation

The Code2HTML plugin transforms the currently edited jEdit source file or the current selection into a visually equivalent HTML or Latex file. The generated files keep the aspect (or very close) of the original jEdit buffer in these areas:

  • Syntax highlighting;

  • Tabulation;

  • Gutter.

The generated HTML or Latex files can then be used for:

  • Printing with a browser;

  • Documentation: syntax highlighted code always looks better;

  • Publication.

Chapter 2. Options

You have the possibility to:

  • Use or not CSS (Cascading Style Sheets);

  • Show the gutter, which includes the line numbers;

  • Wrap code at a given column.

Chapter 3. Commands

The Code2HTML plugin offers these commands:

Produce HTML using a cascading style sheet:

  • HTMLize current buffer using CSS

  • HTMLize current selection using CSS

  • HTML current buffer using CSS (only content)

  • HTML current selection (only content)

  • CSS style definitions

Produce HTML with in-line styles:

  • HTMLize current buffer

  • HTMLize current selection

  • HTML current buffer (only content)

  • HTML current selection (only content)

Produce Latex:

  • Latex current buffer

  • Latex current buffer (only content)

  • Latex current selection

  • Latex current selection (only content)

  • Latex style definitions

Chapter 4. License

The source code is distributed under the GPL. Please see http://www.fsf.org/copyleft/gpl.html

Chapter 5. Feedback

The preferred way to send bug reports is to use the Sourceforge Bug Tracker at http://sourceforge.net/bugs/?group_id=588 .

You can also write to: