欢迎光临
我们一直在努力

ero为什么不显示为论坛和Blog添加代码高亮显示的功能。

  1<?xml version=”1.0″ encoding=”utf-8″ ?>
  2<configuration>
  3    <configSections>
  4        <section name=”codeHighlighter” requirePermission=”false” type=”ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter.Net20″/>
  5    </configSections>
  6
  7  <system.web>
  8
  9    <compilation 
 10         defaultLanguage=”c#”
 11         debug=”false”
 12    />
 13     
 14    <authorization>
 15        <allow users=”*” /> <!– 允许所有用户 –>
 16    </authorization>
 17
 18    <trace
 19        enabled=”false”
 20        requestLimit=”10″
 21        pageOutput=”false”
 22        traceMode=”SortByTime”
 23        localOnly=”true”
 24    />
 25
 26    <!– 以下为Discuz!NT相关的一些系统设置, 如果有疑问, 请访问 http://nt.discuz.net/config 获得更详细的说明
 27    –>
 28
 29
 30
 31    <!–  注意:此节设置错误信息的显示
 32
 33          “On” 始终显示自定义(友好的)信息。
 34          “Off” 始终显示详细的 ASP.NET 错误信息。
 35          “RemoteOnly” 只对不在本地 Web 服务器上运行的
 36    –>
 37    <customErrors 
 38    mode=”RemoteOnly” 
 39    /> 
 40
 41    <!–  注意:此节设置全球化,Discuz!NT由此支持多语言。
 42    –>
 43    <globalization 
 44            requestEncoding=”utf-8″ 
 45            responseEncoding=”utf-8″ 
 46            fileEncoding=”utf-8″
 47    />
 48
 49    <!–  注意:此节设置是否使用ASP.net表单安全验证,Discuz!NT使用自己的验证。
 50    –>
 51    <pages
 52            validateRequest=”false”
 53            enableEventValidation=”false”
 54            enableViewStateMac=”false”
 55            viewStateEncryptionMode =”Never”
 56    /> 
 57
 58    <!–  注意:此节设置由Discuz!NT接管http请求。不会干涉对非Discuz!NT论坛路径下的请求。
 59    –>
 60    <httpModules>
 61        <add type=”Discuz.Forum.HttpModule, Discuz.Forum” name=”HttpModule” />
 62    </httpModules>
 63
 64    <xhtmlConformance mode=”Legacy”/>
 65
 66    <httpRuntime maxRequestLength=”2097151″ executionTimeout=”3600″/>
 67
 68    <webServices>
 69      <protocols>
 70        <add name=”HttpGet” />
 71        <add name=”HttpPost”/>
 72      </protocols>
 73    </webServices>
 74
 75
 76 </system.web>
 77
 78    <codeHighlighter>
 79        <cache languageTimeout=”3″/>
 80        <keywordLinking enabled=”true” target=”_blank” defaultKeywordCollectionKey=”ActiproKeywords”>
 81            <keywordCollection key=”ActiproKeywords”>
 82                <explicitKeyword tokenKey=”IdentifierToken” patternValue=”Actipro” url=”http://www.actiprosoftware.com” caseSensitive=”false”/>
 83                <explicitKeyword tokenKey=”IdentifierToken” patternValue=”CodeHighlighter” url=”http://www.codehighlighter.com” caseSensitive=”false”/>
 84            </keywordCollection>
 85        </keywordLinking>
 86        <languages>
 87            <language key=”Assembly” definitionPath=”~/Languages/Lexers/ActiproSoftware.Assembly.xml”/>
 88            <language key=”BatchFile” definitionPath=”~/Languages/Lexers/ActiproSoftware.BatchFile.xml”/>
 89            <language key=”C#” definitionPath=”~/Languages/Lexers/ActiproSoftware.CSharp.xml”/>
 90            <language key=”CSS” definitionPath=”~/Languages/Lexers/ActiproSoftware.CSS.xml”/>
 91            <language key=”HTML” definitionPath=”~/Languages/Lexers/ActiproSoftware.HTML.xml”/>
 92            <language key=”INIFile” definitionPath=”~/Languages/Lexers/ActiproSoftware.INIFile.xml”/>
 93            <language key=”Java” definitionPath=”~/Languages/Lexers/ActiproSoftware.Java.xml”/>
 94            <language key=”JScript” definitionPath=”~/Languages/Lexers/ActiproSoftware.JScript.xml”/>
 95            <language key=”Lua” definitionPath=”~/Languages/Lexers/ActiproSoftware.Lua.xml”/>
 96            <language key=”MSIL” definitionPath=”~/Languages/Lexers/ActiproSoftware.MSIL.xml”/>
 97            <language key=”Pascal” definitionPath=”~/Languages/Lexers/ActiproSoftware.Pascal.xml”/>
 98            <language key=”Perl” definitionPath=”~/Languages/Lexers/ActiproSoftware.Perl.xml”/>
 99            <language key=”PHP” definitionPath=”~/Languages/Lexers/ActiproSoftware.PHP.xml”/>
100            <language key=”PowerShell” definitionPath=”~/Languages/Lexers/ActiproSoftware.PowerShell.xml”/>
101            <language key=”Python” definitionPath=”~/Languages/Lexers/ActiproSoftware.Python.xml”/>
102            <language key=”SQL” definitionPath=”~/Languages/Lexers/ActiproSoftware.SQL.xml”/>
103            <language key=”VB.NET” definitionPath=”~/Languages/Lexers/ActiproSoftware.VBDotNet.xml”/>
104            <language key=”VBScript” definitionPath=”~/Languages/Lexers/ActiproSoftware.VBScript.xml”/>
105            <language key=”XAML” definitionPath=”~/Languages/Lexers/ActiproSoftware.XAML.xml”/>
106            <language key=”XML” definitionPath=”~/Languages/Lexers/ActiproSoftware.XML.xml”/>
107        </languages>
108        <lineNumberMargin foreColor=”Teal” paddingCharacter=” “ visible=”true”/>
109        <outlining enabled=”true” imagesPath=”~/Images/OutliningIndicators/”/>
110        <spacesInTabs count=”4″/>
111    </codeHighlighter>
112
113</configuration>

赞(0)
未经允许不得转载:上海聚慕医疗器械有限公司 » ero为什么不显示为论坛和Blog添加代码高亮显示的功能。

登录

找回密码

注册