Giter Club home page Giter Club logo

camlhighlight's Introduction

=========================================================================
| README for Camlhighlight						|
|									|
| http://camlhighlight.forge.ocamlcore.org/				|
|									|
| Dario Teixeira ([email protected])				|
=========================================================================


1. Overview
===========

Camlhighlight provides syntax highlighting and pretty-printing facilities
for displaying code samples in Ocsigen applications. The library works by
interfacing with the library portion of GNU Source-highlight [1], a popular
application supporting the most common programming and markup languages.


2. Dependencies
===============

On the OCaml side, Camlhighlight depends on Batteries, Sexplib, and TyXML [2,3,4].
TyXML (which is part of the Ocsigen project [5]) is required because Camlhighlight
provides functions that output valid Html5 values using TyXML's Html5 module,
whereas Sexplib is used to provide serialisation facilities.

Camlhighlight requires also GNU Source-highlight, of course.  Note that for many
Linux distributions you may need to manually download and build the source-code
for GNU Source-highlight.  There are however some distros that already package the
library's runtime and development versions.  Debian and Ubuntu users, for instance,
should install packages 'libsource-highlight-common', 'libsource-highlight4' and
'libsource-highlight-dev'.


3. Building and installing
==========================

The build system relies on OASIS.  The customary sequence of './configure',
'make', and 'make install' is used to build and install the library.  Run
'make doc' to generate the API documentation.

You will also need to manually copy the file 'data/sexp.outlang' into
GNU Source-highlight's data directory (normally '/usr/share/source-highlight').


4. License
==========

Camlhighlight is distributed under the terms of the GNU GPL version 2.
See LICENSE file for full license text.


References
==========

[1] http://www.gnu.org/software/src-highlite/
[2] http://batteries.forge.ocamlcore.org/
[3] http://forge.ocamlcore.org/projects/sexplib/
[4] http://www.ocsigen.org/tyxml
[5] http://www.ocsigen.org/

camlhighlight's People

Contributors

apsheronets avatar darioteixeira avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.