jcberquist / sublimetext-cfml

CFML (ColdFusion and Lucee) package for Sublime Text
MIT License
115 stars 24 forks source link

Make separate ColdFusion formatter, editor agnostic #129

Closed Alexey-T closed 4 years ago

Alexey-T commented 4 years ago

Currently you have CFML formatter which requires module "sublime". so I cannot use it in another Python project. Can you please separate it (make editor independent, and make wrapper for Sublime plugin)?

API can be like:

def format_text(text, options={}):

where "options" is dict with several keys (if you need it).

jcberquist commented 4 years ago

The formatter actually depends on the internal ST Python API in order to do its work, so I don't think I can separate it out, sorry!

KamasamaK commented 4 years ago

@Alexey-T This may not be what you're looking for, but jcberquist/commandbox-cfformat is separate and editor agnostic. You would just have to use it via CLI instead of Python API.

Alexey-T commented 4 years ago

CLI... now quite ok for my python script for CudaText.