Home Download Buy Blog Forum Support

some problem with the zencoding plugin?

some problem with the zencoding plugin?

Postby wslx520 on Mon Jul 16, 2012 7:28 am

I like the zencoding and sublime.but I find some problem width the zen coding plugin for the sublime.

etc: I typed 'img' and press Tab key,the result code is '<img src="" alt="">',but is not '<img src="" alt="" />',have no the '/',some other tag like 'br','hr' is also like this.

this is a bug of the plugin?or what? :(
wslx520
 
Posts: 4
Joined: Mon Jul 16, 2012 7:21 am

Re: some problem with the zencoding plugin?

Postby iamntz on Mon Jul 16, 2012 8:07 am

Probably because zencoding is focused more on html and not on xhtml? :)

What's your doctype? html5 or xhtml?
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: some problem with the zencoding plugin?

Postby wslx520 on Mon Jul 16, 2012 8:21 am

iamntz wrote:Probably because zencoding is focused more on html and not on xhtml? :)

What's your doctype? html5 or xhtml?

oh yes!!I try it in Xhtml,it's ok;but i do it in the html4 and html5,it's not OK. is this a bug?
wslx520
 
Posts: 4
Joined: Mon Jul 16, 2012 7:21 am

Re: some problem with the zencoding plugin?

Postby iamntz on Mon Jul 16, 2012 9:24 am

No, it's not a bug. You might be misunderstood how html works. html4/5 doesn't need self closing tags (input, img, hr, br etc). xhtml, because is more like a xml based language, will need to have those slashes.

However, xhtml being almost dead, i think you don't have to concern about that :)
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: some problem with the zencoding plugin?

Postby Richard Feliciano on Mon Jul 16, 2012 1:10 pm

i just cannot find zencoding plugin on pakage control, and is not installed.
Richard Feliciano
 
Posts: 2
Joined: Mon Jul 16, 2012 1:09 pm

Re: some problem with the zencoding plugin?

Postby wslx520 on Wed Jul 18, 2012 5:44 am

iamntz wrote:No, it's not a bug. You might be misunderstood how html works. html4/5 doesn't need self closing tags (input, img, hr, br etc). xhtml, because is more like a xml based language, will need to have those slashes.

However, xhtml being almost dead, i think you don't have to concern about that :)


can i make it working the same in all doc-type? just need the self-closing tags...
wslx520
 
Posts: 4
Joined: Mon Jul 16, 2012 7:21 am

Re: some problem with the zencoding plugin?

Postby iamntz on Wed Jul 18, 2012 7:20 am

Not sure if that's possible. Out of curiosity: why do you need self closing tags?
iamntz
 
Posts: 914
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: some problem with the zencoding plugin?

Postby wslx520 on Thu Jul 26, 2012 3:51 am

iamntz wrote:Not sure if that's possible. Out of curiosity: why do you need self closing tags?


because some time while i use other command will cause some mistake if the tag is not closed.. :shock:
wslx520
 
Posts: 4
Joined: Mon Jul 16, 2012 7:21 am

Re: some problem with the zencoding plugin?

Postby felixrabe on Wed Oct 24, 2012 8:28 am

I'm currently looking for the same - empty elements that close like in XML even though I'm in a HTML5 ("HTML Syntax") document. Other commands like "find closing tag" seem to mess up when I have a document where empty elements are used without trailing '/>'. Not every plugin (and I think not even every part of ZenCoding) knows about all the HTML tags that are empty even though they look open.

I just want to use XML syntax to have a more straightforward workflow (to use a buzz word here). So if you know of a configuration or a way to change ZenCoding such that it closes br img and friends with '/>' even in HTML5 (<!DOCTYPE html>) documents, please let me know.
felixrabe
 
Posts: 12
Joined: Tue Oct 16, 2012 10:26 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 7 guests