Show Tabs in Editor
-
In teaching classes/workshops, I have found that indentation tends to be a challenge for folks who are new to Python. Since the Drawbot editor is intended to help beginners, I think an editor preference to show tabs might be very helpful...if it’s not too difficult to add!
There are a few ways to visualize this: greyed-out middots for each space, vertical lines, etc.
Talking to @robstenson about this topic, he suggested the Indent Rainbow VSCode extension, which clearly but subtly color codes tabs to help students easily identify the indentation level of a code block. (He also showed me Rainbow Brackets as well, which is pretty cool.)
If this should be a github issue, let me know, but I figured I would start here because I prefer typing my feature requests in DBRegular!
Thank you!
-
this would be handy
how to add it:
Create a custom
NSLayoutManager
for the code editor and overwritedrawGlyphsForGlyphRange_atPoint_
and draw something like a rainbow or dots or ...
-
moving this into a github issue
follow up here: https://github.com/typemytype/drawbot/issues/417