Sublime-CoolFormat
Sublime-CoolFormat copied to clipboard
[Feature Request] add support for Python & custom syntaxes
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.
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.