Changes between Version 13 and Version 14 of Emacs
- Timestamp:
- Apr 25, 2010, 7:04:32 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Emacs
v13 v14 6 6 * [http://code.djangoproject.com/wiki/Emacs#django-html-mode django-html-mode] 7 7 * [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] 8 9 9 10 == django-mode == … … 59 60 == django-html-mumamo-mode == 60 61 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.62 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. 62 63 This uses django-mode from django-mode.el above for the django parts and html-mode for the html parts. 63 64 (In addition it uses css-mode for css parts etc.) 64 65 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) 66 django-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 71 Sample 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 }}} 69 77 70 78