I emailed Phil Haack trying to figure out how to use dp.SyntaxHighlighter in SubText, and he pointed out the custom skins. I'm still working on the highlighting, but I seem to be running into a problem. When I restart IIS, it seems SubText is trying to add the custom skin styles more than once and crashing with a duplicate key:
An item with the same key has already been added.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: An item with the same key has already been added.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentException: An item with the same key has already been added.] System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +48 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +2635580 Subtext.Framework.UI.Skinning.SkinTemplates.GetTemplate(String skinKey) +166 Subtext.Web.UI.Pages.ScriptElementCollectionRenderer.RenderScriptElementCollection(String skinKey) +47 Subtext.Web.UI.Pages.SubtextMasterPage.InitializeBlogPage() +1136 Subtext.Web.UI.Pages.SubtextMasterPage.OnInit(EventArgs e) +13 System.Web.UI.Control.InitRecursive(Control namingContainer) +321 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +692
|