Code

Changes between Version 13 and Version 14 of Emacs


Ignore:
Timestamp:
04/25/10 05:04:32 (4 years ago)
Author:
akamch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v13 v14  
    66 * [http://code.djangoproject.com/wiki/Emacs#django-html-mode django-html-mode] 
    77   * [http://code.djangoproject.com/wiki/Emacs#Improvedversion Improved version] 
     8 * [http://code.djangoproject.com/wiki/Emacs#django-html-mumamo-mode nXhtml and django-html-mumamo-mode] 
    89 
    910== django-mode == 
     
    5960== django-html-mumamo-mode == 
    6061 
    61 MUltiple MAjor MOde is an extension for Emacs that allows one buffer to use multiple modes for different stretches of text. It's bundled with  [http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html nXhtml], and now includes a django-html-mumamo-mode for django templates. 
     62MUltiple MAjor MOde is an extension for Emacs that allows one buffer to use multiple modes for different stretches of text. It's bundled with [http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html nXhtml], and now includes a django-html-mumamo-mode for Django templates. 
    6263This uses django-mode from django-mode.el above for the django parts and html-mode for the html parts. 
    6364(In addition it uses css-mode for css parts etc.) 
    6465 
    65 Unfortunately django-mode.el does not include any functions for indenting django code. 
    66 Therefor django-html-mumamo-mode can not do indentation based on the django parts. 
    67 If someone is interested in contributing elisp code for this then please contact me so we can integrate it the same way as for eRuby. 
    68 -- Lennart B (you can find my email address in the nXhtml source files) 
     66django-html-mumamo-mode provides: 
     67 * '''Syntax highlighting''' aka font locking 
     68 * '''Indentation''' of template tags 
     69 * ... and '''all the benefits''' of [http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html nXhtml] 
     70 
     71Sample screenshot: 
     72 
     73{{{ 
     74#!html 
     75<img src="http://code.djangoproject.com/attachment/wiki/Emacs/nxhtml-django-html-mumamo.png?format=raw" alt="Screenshot of Django template in GNU Emacs with nXhtml."> 
     76}}} 
    6977 
    7078