diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 18:57:36 +0000 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-09-08 20:18:42 +0000 |
commit | af8b66c2c368cee8dbd57591a0daa2566f63af96 (patch) | |
tree | f00a61d72895682df8a2ee7cf8f3ec1adec05082 /plugins/textviewer/lib_textviewer.php | |
parent | 8ce564ccfe470c3215547893db488ed6d948d867 (diff) | |
download | nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.tar.gz nextcloud-server-af8b66c2c368cee8dbd57591a0daa2566f63af96.zip |
the text viewer now does syntax highlighting for code
Diffstat (limited to 'plugins/textviewer/lib_textviewer.php')
-rw-r--r-- | plugins/textviewer/lib_textviewer.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/textviewer/lib_textviewer.php b/plugins/textviewer/lib_textviewer.php index 5b3b90d3b6b..2853ee2f9a5 100644 --- a/plugins/textviewer/lib_textviewer.php +++ b/plugins/textviewer/lib_textviewer.php @@ -2,4 +2,10 @@ //load the required js and css files OC_UTIL::addScript('plugins/textviewer/textviewer.js'); OC_UTIL::addStyle('plugins/textviewer/style.css'); + +//load SyntaxHighligher +OC_UTIL::addScript('plugins/textviewer/syntaxhighlighter/scripts/shCore.js'); +OC_UTIL::addStyle('plugins/textviewer/syntaxhighlighter/styles/shCoreDefault.css'); +OC_UTIL::addStyle('plugins/textviewer/syntaxhighlighter/styles/shCore.css'); +OC_UTIL::addStyle('plugins/textviewer/syntaxhighlighter/styles/shThemeDefault.css'); ?> |