SyntaxFix
Write A Post
Hire A Developer
Questions
If you want many inserts
from rope.base.codeanalyze import ChangeCollector c = ChangeCollector(code) c.add_change(5, 5, '<span style="background-color:#339999;">') c.add_change(10, 10, '</span>') rend_code = c.get_changed()