I have some python code, that has some long string literals containing more python code. These strings should most of the time be uniformly colored, as happens by default.
However, I would like to be able to some times narrow my buffer to any of these strings, and then have emacs syntax highlight them as if they were code, not strings within code (i.e. as if the
""" weren't there in the original buffer)
Is there any way to do that, that does not involve lots of elisp?
NOTE: I do not need to necessarily need narrowing, just seemed better to change the syntax highlighting like that, as in the full buffer it would be confusing...