Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Eriksson 930 posts 1824 karma points
    May 22, 2013 @ 14:31
    Jonas Eriksson
    0

    Using in Umbraco 6

    Hi, thanks for a nice plugin!

    I'm using it inside Umbraco 6. It did not render the scripts by default so I manually added a macro to do so. And it works mostly. However, if I check the option HTML Script it breaks (gives up without formatting anything). Is this a known problem? I hoped it to be be an option to display razor code, really neat.

    This is the partial I'm currently using to run the script

    <link href="/Umbraco_Client/tinymce3/plugins/syntaxhighlighter/styles/core/shCore.css" rel="stylesheet" type="text/css" />
    <link href="/Umbraco_Client/tinymce3/plugins/syntaxhighlighter/styles/themes/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/scripts/jquery.js"></script>
    <script type="text/javascript" src="/Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/core/shCore.js"></script>
    <script type="text/javascript" src="/Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/core/shAutoloader.js" ></script>
    <script type="text/javascript" >
        $(document).ready(function () { 
            SyntaxHighlighter.autoloader(
                'applescript            /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushAppleScript.js',
                'actionscript3 as3      /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushAS3.js',  
                'bash shell             /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushBash.js',  
                'coldfusion cf          /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushColdFusion.js',  
                'cpp c                  /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushCpp.js',  
                'c# c-sharp csharp      /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushCSharp.js',  
                'css                    /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushCss.js',  
                'delphi pascal          /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushDelphi.js',  
                'diff patch pas         /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushDiff.js',  
                'erl erlang             /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushErlang.js',  
                'groovy                 /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushGroovy.js',  
                'java                   /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushJava.js',  
                'jfx javafx             /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushJavaFX.js',  
                'js jscript javascript  /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushJScript.js',  
                'perl pl                /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushPerl.js',  
                'php                    /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushPhp.js',  
                'text plain             /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushPlain.js',  
                'py python              /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushPython.js',  
                'ruby rails ror rb      /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushRuby.js',  
                'sass scss              /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushSass.js',  
                'scala                  /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushScala.js',  
                'sql                    /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushSql.js',  
                'vb vbnet               /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushVb.js',  
                'xml xhtml xslt html    /Umbraco_Client/tinymce3/plugins/syntaxhighlighter/scripts/brushes/shBrushXml.js'
            );
            SyntaxHighlighter.all();
        });
    </script>
    
    

     

  • Ove Andersen 435 posts 1536 karma points c-trib
    May 22, 2013 @ 15:15
    Ove Andersen
    0

    I havent tested it with Umbraco 6 yet, but I'll check it out this week and supply a fix.

Please Sign in or register to post replies

Write your reply to:

Draft