Answer the question
In order to leave comments, you need to log in
HTML code highlighting in python file in vim?
There is a need to write a number of cgi scripts in python. I'm going to use the standard approach: we processed a batch of data, took a template line with html code, formatted it, substituting the data values.
The question arises: how not to lose the convenience of writing html code? The pages will be tricky, so I would like to highlight the code, tags in the page code. But this, apparently, is a completely non-standard functionality - highlighting the html code in a text variable in a python script.
Has anyone come across anything similar? Probably I'm not the only one who needs to write some kind of cgi script that displays a heavy page. There was an idea to take out the page template in a separate html file, which is then read.
I am using vim. The editor is not exactly a master, but I am learning.
Can I even reinvent the wheel?
Answer the question
In order to leave comments, you need to log in
Try this one - vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file
> Maybe I'm reinventing the wheel?
Yes, take any framework like flask, django, etc. and write what you need. Then, with the help of flup, for example, it will be possible to fasten this to the fastcgi web server module. In general, it is not clear why you need cgi.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question