[Github-comments] [geany/geany] Indentation auto-detection for python files (#1008)

elextr notifications at xxxxx
Mon Apr 25 11:02:10 UTC 2016


The detection width is set by a heuristic based on a "factored most common" and is not language specific.  With a heuristic there will always be situations where it will get it wrong.  In particular a language like Python tends to have most indents at a multiple of the minimum, so it is likely to be most at risk.

The most accurate method would be to make it language dependent, especially for Python where indent is syntax.

But that would need support for language specific capabilities to be added via plugins since we do not want to hard code language specific features for all the number of languages we support.  That plugin capability has been discussed, but does not exist at the moment.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1008#issuecomment-214265851
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160425/f597810a/attachment.html>


More information about the Github-comments mailing list