This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# gitweb.js | ||
|
||
Support language detection and syntax highlighting in legacy versions of [gitweb(1)](https://git-scm.com/docs/gitweb). | ||
|
||
## Table of Contents | ||
|
||
- [Description](#description) | ||
- [Languages](#languages) | ||
- [File Type Associations](#file-type-associations) | ||
|
||
## Description | ||
|
||
Legacy versions of Gitweb lack support for language detection and syntax highlighting, an important feature | ||
found in modern VCS repository web UIs. For many, upgrading major versions is risky, time consuming, and prone | ||
to downtime. | ||
|
||
gitweb.js is a microlibrary that provides customizable support for language detection and syntax highlighting by | ||
using [highlight.js](https://highlightjs.org) and jQuery. | ||
|
||
## Languages | ||
|
||
By default, language support is provided for: | ||
|
||
- C | ||
- C++ | ||
- CSS | ||
- HTML | ||
- JavaScript | ||
- Perl | ||
- PHP | ||
- Ruby | ||
|
||
## File Type Associations | ||
|
||
All languages have at least one file types that can be directly associated with | ||
source files of the given language. Likewise, many languages have multiple file | ||
types that should be recognized as the same language. An example would be in PHP, | ||
where `.php`, `.php5`, and `.phtml` are all valid PHP file types. | ||
|
||
gitweb.js provides support for detecting and highlighting file types associated | ||
with a primary file type. |