https://github.com/nbaztec/syntaxhighlighter
A light-weight extensible syntax highlighter in Python and C#
https://github.com/nbaztec/syntaxhighlighter
Last synced: about 1 year ago
JSON representation
A light-weight extensible syntax highlighter in Python and C#
- Host: GitHub
- URL: https://github.com/nbaztec/syntaxhighlighter
- Owner: nbaztec
- Created: 2012-03-22T16:28:06.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-24T11:11:29.000Z (about 14 years ago)
- Last Synced: 2025-02-04T17:28:18.774Z (over 1 year ago)
- Language: Python
- Homepage: http://nbaztec.co.in/apps/view.php?id=2
- Size: 191 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SyntaxHighlighter
SyntaxHighlighter is a light-weight extensible syntax highlighter. Currently supports common languages like C, C++, C#, SQL, Python, Java and the versatile Bash scripting.
The output formats supported are HTML and RTF and the application is a multi-port b/w C# and Python.
* The application is available both as a standalone and as a library.
* All the features are fully customizable including the highlight rules, highlight colors, highlight fonts and the library interface can be used with or without additional parameters.
* Simple addition of adding regex lexers.
* C# version supports a Windows Aero GUI, while the Python version boasts of a versatile command-line support.
* Wrapper for Python 's `re` module to support multiple capture groups.
## Requisites
* C#
* .NET Framework 3.5
* Python
* Python 2.7
## Installation
You will need to compile the project in Microsoft Visual Studio 2010 for the C# version.
## License
SyntaxHighlighter is licensed under GNU LGPL v3 (http://www.gnu.org/licenses/lgpl-3.0.html).
SyntaxHighlighter is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
SyntaxHighlighter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with SyntaxHighlighter. If not, see .
## Running SyntaxHighlighter
* C#
Form based selection on the executable.
* Python
Usage Options:
-i | --input-file : Input file.
-o | --output-file : Output file.
-t | --highlight-type : DEFAULT: basic, Type of highlighter (basic, bash, cpp, python, csharp, sql, java, etc.).
-w | --writer : DEFAULT: html , Output writer (Currently only html)