To get emacs to work with web2py templates where you have color hilighing
for both the HTML and Python you will need to create a custom language mode
for emacs.

Here are some guides if you are interested:

http://renormalist.net/Renormalist/EmacsLanguageModeCreationTutorial
http://xahlee.org/emacs/elisp_syntax_coloring.html

If you do this and get it working, please share with the community.

On Fri, Mar 2, 2012 at 4:58 AM, Johann Spies <[email protected]> wrote:

> On 2 March 2012 14:09, viva <[email protected]> wrote:
>
>> Hello all,
>>
>> I work in emacs and have just begun using web2py. Unfortunately I can't
>> get proper highlighting for the templates (ie. web2py's own flavour of
>> mixed python and HTML).
>>
>>
> For work with html-files I use the nxhtml-mode.  However I don't think you
> can expect to have any editor to respect python syntax in a html-file.
>
> I prefer to do my work on html-files in bluefish and the python stuff in
> emacs.
>
> If I remember correctly I used guidelines by
> http://hide1713.wordpress.com/2009/01/30/setup-perfect-python-environment-in-emacs/to
>  set up my emacs for python.
>
> If you google for 'python setup for emacs'  you will get well documented
> advice.
>
> Regards
> Johann
> --
> Because experiencing your loyal love is better than life itself,
> my lips will praise you.  (Psalm 63:3)
>
>


-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to