For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > February 2005 > Smarty Syntax Definition for Kate, KWrite, Katepart









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Smarty Syntax Definition for Kate, KWrite, Katepart
Werner

2005-02-10, 8:59 am

Hi!

Please find attached my Smarty Syntax Definition.

A few notes:

1) Improvements are *very* welcome. This is my first syntax definition
(born out of necessity), I hope it helps someone out there (at least
I've been using it a lot).
2) It includes the HTML Syntax Definition (v1.93 tested) with
<IncludeRules context="##HTML" />
3) Known bug: Smarty Code is not recognized inside HTML 'Values', due to
the amateur-like way which I included the HTML definition.
Not-recognized example:
<select name="{$myVar}">
If anyone knows how to solve this I would be very happy, just to escape
the Smarty Code from within an HTML 'Value', without modifying the HTML
Syntax Definition.
4) If anyone more experienced with Syntax Definitions would like to
rewrite the whole thing based on the info of my file, please go ahead,
but let me know, so I can use the improved version as well.
5) Keep me posted (feedback is welcome) if I missed something very basic
in Smarty's syntax.

P.S. Please pardon my poor English :-)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com