Sublime-CoolFormat icon indicating copy to clipboard operation
Sublime-CoolFormat copied to clipboard

[Feature Request] add support for Python & custom syntaxes

Open Enteleform opened this issue 9 years ago • 1 comments

Python would be nice to have as a fully implemented preset in CoolFormat.

 

Additionally, it would be very useful if users could define custom syntax preferences via an array of dictionaries @ sublime-settings.

These custom syntaxes could be much simpler than the included presets, functioning only on characters within single lines.

For example:

    [
        {
            syntaxes: [ "autohotkey", "processing", "regular expression" ],

            // select the padding method for each character
            // a space will be added to the defined sides of the character upon formatting
            // OPTIONS: "left" | "right" | "both"
            left_paren:  "right"
            right_paren: "left"
            colon:       "both"
            ETC...
        }
    ]

Or maybe even regEx defined patterns instead of explicitly defined characters as in the example above.

Enteleform avatar Apr 15 '16 22:04 Enteleform

Thank you for your suggestion. If you want to configure the CoolFormatConfig.cfconfig file, you can use the import and export functions of CoolFormat(Windows Only) tool.

akof1314 avatar Apr 27 '16 02:04 akof1314