Fork me on GitHub
DNN Apps - Demo-Zone
Discover DNN-Apps - simple and elegant, easy to customize
You are here: Home  >  Apps  >  SyntaxHighlighter

Simple JS code snippet

// SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
// http://alexgorbatchev.com
// now for DNN thanks to http://2sxc.org/
var setArray = function(elems) {
    this.length = 0;
    push.apply(this, elems);
    return this;
}

Simple JS code snippet

// SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
// http://alexgorbatchev.com
// now for DNN thanks to http://2sxc.org/
var setArray = function(elems) {
    this.length = 0;
    push.apply(this, elems);
    return this;
}

Simple Razor Example

@using ToSic.SexyContent

@ListContent.Title @ListContent.Toolbar

@Html.Raw(ListContent.Introduction)
    @foreach (var q in AsDynamic(Data["Default"].List)) {
  1. @q.Toolbar @q.Question
  2. }
2serve . 2invent . 2create is 2be.