Home > srccolor

srccolor

Srccolor is a project mainly written in JAVASCRIPT and SHELL, it's free.

Firefox addon to provide syntax highlighting for source codes.

srccolor

srccolor is an extension to display colored source code files. Instead of displaying it in black and white (for css and javascript) or offering to download them (for other languages, such a as python, java, vbscript etc), firefox will then display the source code with syntax coloration.

It's a bootstraped addon which mean you don't need to restart Firefox after installing it.

srccolor uses amazing highlight.js library.

  • which languages are supported ?
    bash, cpp, css, diff, erlang, haskell, java, javascript, lisp, lua, perl, python, ruby, scala, sql, tex, vala and vbscript.

  • I've got a file in a supported languages, but Firefox still asks me to download it.
    Filetype detection is based on mime type sent by the server. If the server sends an incorrect mime type, it will not be displayed in srccolor. Also, it may be a valid mime type, which srccolor does not known about. In doubt, do not hesitate to send me an email with a link to suspicious file.

  • How do I personalize color scheme for srccolor ?
    You can create the file chrome/srccolor.css in your profile folder, and change css rules that will apply to colored content. See also explanation on highlight.js site

  • I've got other questions or comments
    mail me at: [email protected]

Previous:sample_app1