Show Tabs in Editor
djrrb last edited by djrrb
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!
this would be handy
how to add it:
Create a custom
NSLayoutManagerfor the code editor and overwrite
drawGlyphsForGlyphRange_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