Was this page helpful?

How to add the FCKEditor Plug-in: Code Beautifier

    Table of contents
    1. 1. Examples
    2. 2. Installation

     

    Applies toMindTouch 9.08 to 9.12.3LicenseAll versions
    Operating SystemDocumentation TypesEditor
    Community
     
    Note: This code beautifier is included by default with CKEditor which is enabled by default in MindTouch 10.0 and later
     

    This plug-in provides advanced source code formatter with DekiScript support.

    This plug-in supports FormatIndentator config param.

    Examples

    Source code with default FCKeditor code formatter

    Deki_8_08_2.png

    The same source with code beautifier

    Deki_9_02_2.png

    Installation

    For v9.02:

    Go to System Settings > Configuration > Editor and enable the formatter:

    FCKConfig.BeautifySource = true ;

    For v9.08 and newer:

    FCKConfig.Plugins.Add( 'dekicodeformatter' ) ;
    FCKConfig.BeautifySource = true ;

    Note: This plug-in is avaliable since Lyons.

    Was this page helpful?
    Tag page

    Files 2

    FileVersionSizeModified 
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by