Re:Aspen is a Python web server. Simplates are the main att...
by evangineer on Tuesday April 05, 2011 @08:50PM
(#2413454)
I'm hoping that nXhtml mode and its support for Multiple Major Modes might do the trick here http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html
[ Parent
| on HN ]
Re:Aspen is a Python web server. Simplates are the main att...
by whit537 on Wednesday April 06, 2011 @10:23AM
(#2415164)
Good find. "Another important feature is the ability to mix several languages in one buffer and get the correct syntax highlighting and indentation for each of them." It looks like they're inferring mode blocks based on things like "<?php>".
http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html#php
What is wanted for Aspen simplates is to use Python for the first two pages, and use the file extension to determine the mode/highlighting for the third page. The first two pages are optional.