POLL: HTML CodeSense?

Ahoy.

I've been thinking about doing a smart codecompletion thing for HTML.
Then maybe CSS too.

The way it would work would be similar to how CSSEdit and Dreamweaver  
code completion works.
Inside of an HTML tag, you hit space to bring up a list of attributes  
that are valid for that tag.
Outside of an HTML tag you hit a key command or tab completion to  
bring up a list of tags.

Also, it should be smart enough to insert xhtml tags or html4.0 tags  
depending on the doctype.

Pretty simple really, but I'm not sure if people really want me to  
share this or just do it for myself.

So, if you would use such a feature, please reply to this message.
Please also reply with what other features you'd like to see in this.

thanks

	thomas Aylott — subtleGradient — CrazyEgg — sixteenColors

Jasper van der Meulen | 1 Aug 01:55 2007
Picon

Re: POLL: HTML CodeSense?

I'd think i like it ..and would use it..sounds great to me....
Would it also be possible to make when you type a char the list shrinks ?

Regards J.




On Aug 1, 2007, at 01:18 , Thomas Aylott (subtleGradient) wrote:

Ahoy.

I've been thinking about doing a smart codecompletion thing for HTML.
Then maybe CSS too.

The way it would work would be similar to how CSSEdit and Dreamweaver code completion works.
Inside of an HTML tag, you hit space to bring up a list of attributes that are valid for that tag.
Outside of an HTML tag you hit a key command or tab completion to bring up a list of tags.

Also, it should be smart enough to insert xhtml tags or html4.0 tags depending on the doctype.

Pretty simple really, but I'm not sure if people really want me to share this or just do it for myself.

So, if you would use such a feature, please reply to this message.
Please also reply with what other features you'd like to see in this.

thanks

thomas Aylott — subtleGradient — CrazyEgg — sixteenColors


______________________________________________________________________
For new threads USE THIS: textmate-qhrM8SXbD5LrQoZeqNtYVdAWLNoT+7d/@public.gmane.orgm
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate


john | 1 Aug 01:59 2007

Re: POLL: HTML CodeSense?

On Jul 31, 2007, at 5:18 PM, Thomas Aylott (subtleGradient) wrote:

> So, if you would use such a feature, please reply to this message.

I'm in.

> Please also reply with what other features you'd like to see in this.

At least basic preliminary support for (X)HTML5 would be nice, stuff  
like <header>, <footer>, <section>, <article> etc. "Basic preliminary  
support" as in at least not marked as invalid when used with a proper  
doctype.

john

Jay Soffian | 1 Aug 02:16 2007

Re: "Unbinding" a menu command in TextMate


On Jul 31, 2007, at 2:30 PM, Kenneth McDonald wrote:

>> Also, you can type ñ with this sequence: Option-n, n
> There's approximately 0% chance I'll remember that, but I do  
> appreciate the info. Gawd, I wish I knew some languages other than  
> English.

System Preferences -> International -> Input Menu -> Show input menu  
in menu bar.

 From there it is easy to bring up the keyboard viewer to figure out  
the key binding, or if you just want to insert the character, bring  
up the character palette and select View: Roman, by Category,  
Accented Latin.

j.
Brett Terpstra | 1 Aug 03:44 2007

Re: POLL: HTML CodeSense?

>
> I've been thinking about doing a smart codecompletion thing for HTML.
> Then maybe CSS too.
>
[snip]
> So, if you would use such a feature, please reply to this message.
>
An aye vote here...

Brett

Jacob Rus | 1 Aug 03:52 2007
Picon

Re: POLL: HTML CodeSense?

john wrote:
> At least basic preliminary support for (X)HTML5 would be nice, stuff 
> like <header>, <footer>, <section>, <article> etc. "Basic preliminary 
> support" as in at least not marked as invalid when used with a proper 
> doctype.

That's a grammar issue, unrelated to what subtleGradient is talking 
about.  But I think TM should probably move to preferring html5 creation 
document creation in the nearish future (over html 4.01 strict, that 
is), as it's backwards-compatible, and better defined.

Is Infininight still planning on making a better HTML grammar? *wink*

-Jacob

Chip Cullen | 1 Aug 05:27 2007
Picon

Re: Re: POLL: HTML CodeSense?

I would most definitely welcome such an implementation. I think there
are a lot of people who use Textmate for HTML development that would
love to see this.

Unfortunately, I'm not sure I can help with actual development, as,
well, I only know HTML & CSS and not much else.

I suppose if you needed a tester, I could do that.

Chip

On 8/1/07, Jacob Rus <jacobolus@...> wrote:
> john wrote:
> > At least basic preliminary support for (X)HTML5 would be nice, stuff
> > like <header>, <footer>, <section>, <article> etc. "Basic preliminary
> > support" as in at least not marked as invalid when used with a proper
> > doctype.
>
> That's a grammar issue, unrelated to what subtleGradient is talking
> about.  But I think TM should probably move to preferring html5 creation
> document creation in the nearish future (over html 4.01 strict, that
> is), as it's backwards-compatible, and better defined.
>
> Is Infininight still planning on making a better HTML grammar? *wink*
>
> -Jacob
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate@...
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>

Graham Ashton | 1 Aug 09:15 2007
Picon

Edit in TM URL associations not working

I may just be being a berk here, but I don't seem to be able to get
the URL associations to play ball. I'm editing text in three different
wikis, each with a different format. My config looks like this:

{
	URLAssociations = {
		'mail.google.com/' = 'mail';
		'macromates.com/blog/' = 'markdown';
		'blacktree.cocoaforge.com/forums/' = 'bbcode';
		
		'trac.' = 'trac';
		'wiki.' = 'twiki';
		'doe.caribou.lan' = 'markdown';
	};
}

Whenever I edit the contents of a textarea in TM it's opened into a
file named title-of-page.safari. I consequently need to manually
switch the syntax highlighting. Is there something wrong with my
config?

I've restarted TM and Safari, to no effect. Do I need to prod
something else to get the input manager to take notice of changes to
the plist file? I'm using the Safari beta (3.0.2).

On a related note, can you use regular expressions in the
URLAssociations setup, or do you have to specify an exact match?

Cheers,

Graham

Tim Mansour | 1 Aug 09:20 2007
Picon

Re: POLL: HTML CodeSense?


On 01/08/2007, at 9:18 am, Thomas Aylott (subtleGradient) wrote:

> So, if you would use such a feature, please reply to this message.

Oh yeah.

--

-- 
Tim Mansour <tim@...>

Tony Crockford | 1 Aug 09:31 2007
Picon

Re: POLL: HTML CodeSense?


On 1 Aug 2007, at 00:18, Thomas Aylott (subtleGradient) wrote:
>
> So, if you would use such a feature, please reply to this message.
> Please also reply with what other features you'd like to see in this.

I'd be keen on something like that, but curious as to if it might  
work within include files for PHP (e.g. no doctype in the file...)

and would it cope with embedded and inline css as well?

;o)


Gmane