Details
-
Task
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
None
-
None
Description
For example I'm editing some C/C++ code and have something like printf("");
Now I want to insert some text between quotes from clipboard.
If the clipboard text has quotes the resulting C++ string will be invalid. Instead it would be great if the string was automatically escaped on paste.
The basically the task:
- detect if the insertion is done inside a C/C++/other_lang string
- escape inserted string by default in this case
- add menu entry to allow insertion without escaping and make it visible/enabled only when needed
Another way to solve the problem is to add a menu tool to escape selected string. But it's not that intuitive.