SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Matt Ward

February 2012 - Posts

  • JavaScript Code Folding

    SharpDevelop 4.2 now includes support for JavaScript code folding and code regions.

    When you open a JavaScript (.js) file into the text editor any functions that are defined can be folded.

    JavaScript code folding in text editor

    The text editor also supports code regions.

        //#region Canvas Test 
         
        tests['canvas'] = function() { 
            var elem = document.createElement( 'canvas' ); 
            return !!(elem.getContext && elem.getContext('2d')); 
        }; 
         
        //#endregion

    These regions can be folded as shown below.

    JavaScript code regions folded in the text editor

Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.