[Pydev-code] Changing how the code is rendered on the screen
Brought to you by:
fabioz
From: Martin C. M. <ma...@ma...> - 2012-08-16 22:25:24
|
Hi all, I'd like to modify how the Python code is rendered on the screen, to make it different from how it's stored on disk. Some random examples: - Display list comprehensions as [for x in foo: expr(x)] - Display return statements -- "return expr" -- without the return keyword, i.e. just "expr". - For a pair of statements like this: local_var = expr my_func(local_var) render them as this: my_func(expr) I'm pretty familiar with Python and Java, but have never developed Eclipse plugins before. Any suggestions as to what parts of the code I should read first? What docs? The existing "collapse comments" is an example of this. Would that be a good place to start? Thanks, Martin |