Forums / General / .emacs for template files?

.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

eZ debug

Timing: Jan 30 2025 00:53:54
Script start
Timing: Jan 30 2025 00:53:54
Module start 'content'
Timing: Jan 30 2025 00:53:54
Module end 'content'
Timing: Jan 30 2025 00:53:54
Script end

Main resources:

Total runtime0.2310 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9063180.8438
Module start 'content' 0.00560.0075 768.750097.8203
Module end 'content' 0.01320.2178 866.5703525.8984
Script end 0.2310  1,392.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.5156200.0002
Check MTime0.00130.5676200.0001
Mysql Total
Database connection0.00070.289210.0007
Mysqli_queries0.183679.47371410.0013
Looping result0.00110.49061390.0000
Template Total0.217394.110.2173
Template load0.00090.384710.0009
Template processing0.216493.685010.2164
Override
Cache load0.00060.258810.0006
Sytem overhead
Fetch class attribute can translate value0.00070.312510.0007
XML
Image XML parsing0.00020.086110.0002
General
dbfile0.01024.4155200.0005
String conversion0.00000.010030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs