Adding feature to allow users to choose a syntaxhighlighter theme per project

This commit is contained in:
Nathan Adams
2014-03-12 21:30:54 -05:00
parent 822e107958
commit 7ac8142fc6
8 changed files with 138 additions and 3 deletions

View File

@@ -40,7 +40,16 @@
<script type="text/javascript" src="{media '/idf/js/syntaxhighlight/shAutoloader.js'}"></script>
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shCore.css'}" />
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shCoreDefault.css'}" />
{if $project}
{if $project.syntaxtheme}
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shTheme'}{$project.syntaxtheme}.css" />
{else}
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shThemeDefault.css'}" />
{/if}
{else}
<link rel="stylesheet" type="text/css" href="{media '/idf/css/syntaxhighlight/shThemeDefault.css'}" />
{/if}
{appversion}
</head>
<body>