Læsning fra web.config
Lige et hurtigt spørgsmål, hvordan henter værdien fra definitionpath fra min web.config fil.Her er et uddrag af web.config
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<section name="codeHighlighter" type="ActiproSoftware.CodeHighlighter.CodeHighlighterConfigurationSectionHandler, ActiproSoftware.CodeHighlighter" />
</configSections>
<codeHighlighter>
<cache languageTimeout="3" />
<languages>
<language key="C#" definitionPath="~/Syntax/ActiproSoftware.CSharp.xml" semanticParserType="CodeHighlighterTest.SemanticCSharpParser, CodeHighlighterTest" />
<language key="VB.NET" definitionPath="~/Syntax/ActiproSoftware.VBDotNet.xml" semanticParserType="CodeHighlighterTest.SemanticVBDotNetParser, CodeHighlighterTest" />
<language key="XML" definitionPath="~/Syntax/ActiproSoftware.XML.xml" />
</languages>
