mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Adds text file preview and highlighting.
This commit is contained in:
parent
974392d2eb
commit
90b0b97e22
57 changed files with 5924 additions and 78 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue