Lisp-Mode

Indentation

Posted by mrcsparker 
Indentation
December 08, 2006 09:02PM
I can't seem to get indentation to work with smarty-mode/xemacs.
Re: Indentation
December 11, 2006 04:00PM
Hi,

I didn't have implemented the indentation feature in the smarty-mode because there are no real rules to indent smarty templates.

What is best? The indentation of the template or the indentation of the final file (output of the smarty engine)?
Indentation
December 11, 2006 07:05PM
-- moved topic --
Re: Indentation
December 12, 2006 03:38AM
I would prefer indentation of the template, since that is the file that is being worked on.

How do you edit the files without indentation? Do you line up all of the html/smarty on the left?

By thw way, thanks for working on this. Very cool project.
Re: Indentation
December 12, 2006 07:36AM
mrcsparker Wrote:
-------------------------------------------------------
> I would prefer indentation of the template, since
> that is the file that is being worked on.

For a HTML template I'm OK with the indentation of the template. But for a TEXT template (a template used to send an email by example), the indentation must be accorded to the result (or you will have an unreadable email with a lot of space and empty line).

I think I'll add an option to select the indentation type (template indentation or result indentation).

> How do you edit the files without indentation? Do
> you line up all of the html/smarty on the left?

I manually indent the template according to what I exepect.

> By thw way, thanks for working on this. Very cool
> project.

Thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 2
Record Number of Users: 2 on February 06, 2012
Record Number of Guests: 61 on February 22, 2014
Hébergeur : Morinie.Fr