.emacs for template files?

Author Message

Geraint Edwards

Wednesday 13 July 2005 2:44:57 am

Has anyone developed a .emacs file to enable syntax highlighting of tpl file. I tried the quanta/kate editor solution but found them slow and fiddly compared to emace.

PHP is nicely highlighted but not the tpl files.

kracker (the)

Wednesday 13 July 2005 3:03:30 pm

Bump,

I too use emacs for all my eZ publish development and have often wondered about emacs syntax formating but don't know enough about it to have implemented it myself.

I think syntax and eZ publish development syntax standards <i>http://ez.no/ez_publish/documentation/development/standards</i>

Re: indentation/spacing/code formating. It would be very nice tools to have in the toolkit.

Interesting, <i>http://66.102.7.104/search?q=cache:i4dm65NfvU0J:two-wugs.net/emacs/mode-tutorial.html+emacs,+modes&hl=en

http://howtos.linux.com/howtos/Emacs-Beginner-HOWTO-3.shtml
http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&q=emacs%2C+modes&btnG=Search
http://www.emacswiki.org/cgi-bin/wiki</i>

//kracker
<i>Sole : Every Single One Of Us</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Wednesday 13 July 2005 3:19:09 pm

There are also several different emacs modes already available for web application development in xhtml, xml, sgml, css, js, cfml, etc ...

<i>http://www.emacswiki.org/cgi-bin/wiki/ColdFusionDeluxeMode
http://www.joegrossberg.com/archives/001858.html</i>

I'll post more if I find anything more useful (which these aren't really :| )

//kracker
<i>Michael Crichton : State of Fear</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Geraint Edwards

Thursday 14 July 2005 1:24:03 am

I got my php .el file from
http://sourceforge.net/projects/php-mode/

This makes the php files readable (but could be improved to make it more ezpublish specific) - I think there is a mixed php/html version but I havn't looked into this yet.

What would be really nice is to find that someone has a .el file for eZPublish template files !

Geraint

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:28:34
Script start
Timing: Jan 18 2025 10:28:34
Module start 'layout'
Timing: Jan 18 2025 10:28:34
Module start 'content'
Timing: Jan 18 2025 10:28:35
Module end 'content'
Timing: Jan 18 2025 10:28:35
Script end

Main resources:

Total runtime0.7506 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.0391152.6250
Module start 'layout' 0.00740.0025 741.664139.4297
Module start 'content' 0.00990.7391 781.0938553.7344
Module end 'content' 0.74900.0016 1,334.828112.1797
Script end 0.7506  1,347.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4769160.0002
Check MTime0.00140.1849160.0001
Mysql Total
Database connection0.00130.169510.0013
Mysqli_queries0.687691.6057600.0115
Looping result0.00060.0860580.0000
Template Total0.705193.920.3526
Template load0.00240.317920.0012
Template processing0.702793.617520.3514
Template load and register function0.00020.032510.0002
states
state_id_array0.00250.335810.0025
state_identifier_array0.00110.148820.0006
Override
Cache load0.00200.2707310.0001
Sytem overhead
Fetch class attribute can translate value0.00080.108320.0004
Fetch class attribute name0.00160.219150.0003
XML
Image XML parsing0.00080.103320.0004
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00170.2318180.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs