How to Use this Skin Object

The skin object can be used successfully with no attributes specified at all. This will allow you to use the the most common combination of syntax highlighters you'd need for DNN examples, including SQL, HTML, CSS, JS, and more. It also will apply the default PrismJS theme.

<%@ Register TagPrefix="wns" TagName="PRISMJS" src="~/DesktopModules/WillStrohl.PrismJS/PrismJS.ascx" %>
<wns:prismjs runat="server" />

If you want to specify different options for your syntax highlighting needs, the possible attributes are listed below.
  • Script - this allows you to specify the scripts that you want loaded into the page
  • Theme - this allows you to specify the theme that you want to be loaded into the page

Script expects the following possible values:
  • Core - This will load the bare minimum required scripts to run this feature, plus highlighters for markup, CSS, C-like, and JavaScript.
  • All - The core and all possible syntax highlighters are loaded.
  • DNN - The core and the following common syntax highlighters are loaded: markup, CSS, C-like, JavaScript, CSS extras, SQL, C#, and ASP.Net C#. (default if no script is specified)

Theme expects the following possible values:
  • Default (default if no theme is specified)
  • Dark
  • Funky
  • Okaidia
  • Twilight
  • Coy

A common example for DNN might look like the following:

<%@ Register TagPrefix="wns" TagName="PRISMJS" src="~/DesktopModules/WillStrohl.PrismJS/PrismJS.ascx" %>
<wns:prismjs runat="server" Script="dnn" Theme="coy" />

Last edited Oct 6, 2014 at 2:46 AM by hismightiness, version 1