Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

nickolasburr/gitweb.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitweb.js

Support language detection and syntax highlighting in legacy versions of gitweb(1).

Table of Contents

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 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 type 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.

About

Language detection and syntax highlighting for legacy gitweb(1).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published