aroberge / ideas

Easy creation of custom import hooks to experiment on alternatives to Python's syntax; see https://aroberge.github.io/ideas/docs/html/
Other
76 stars 5 forks source link

More readable transformed source code display #20

Closed aroberge closed 2 years ago

aroberge commented 2 years ago

Currently, if the option to show the transformed source is active, the code is shown with something like this:

========Transformed=========
new code here
----------------------------

This is ok when the source spans multiple lines, but not so much for a single line.

In this case, I think that the following would be preferable

## single new line of new code here

Furthermore, the option to show the original code should only be active when not using the interpreter.