Adds text file preview and highlighting.

This commit is contained in:
Lars Jung 2012-08-04 21:47:22 +02:00
parent 974392d2eb
commit 90b0b97e22
57 changed files with 5924 additions and 78 deletions

View file

@ -178,6 +178,26 @@ var H5AI_CONFIG = {
"types": ["bmp", "gif", "ico", "image", "jpg", "png", "tiff"]
},
/*
* Show text file preview on click.
* "types" maps file types to SyntaxHighligher brushes.
*
* For available brushes see http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
*/
"preview-txt": {
"enabled": true,
"types": {
"authors": "plain",
"copying": "plain",
"css": "css",
"install": "plain",
"readme": "plain",
"script": "shell",
"text": "plain",
"js": "js"
}
},
/*
* Show QRCodes on hovering files.
*/