Tag completion & Linux text editors

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Does anyone know of a text/code editor for Linux that can do Dreamweaver style tag completion? What I mean is that instead of closing the tag right away, it waits until you start the closing bracket. Bluefish and Quanta Plus both close the tag right away which I don't like because usually I have the content already in place and am just putting the mark-up around it. Immediate tag completion is just annoying.

This, combined with DW's CSS completion features is really preventing me from doing more work on Linux. Does anyone know of a Linux editor that can do that? It's not really a GUI-based CSS editor, just inline auto-completion and suggested values.

Edit: Quanta Plus does do the tag competion the way I want it to. Not sure if they added this more recently or if I didn't have the settings right at first. They also have CSS auto-completion.

He has: 629 posts

Joined: May 2007

Have you tried using Textile[1]? It's real simple to learn and makes markup a breeze. It also converts some punctuation to Unicode entities-- quoted passages get "curly quotes" for example.

If you work natively in Unicode, you can use Tidy[2] to convert those entites to UTF-8 characters, for real convenience.

Both products are available for download, and work on most platforms.

[1] http://textile.thresholdstate.com/
[2] http://infohound.net/tidy/

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Um, that's really not what I'm looking for. I want to write HTML and CSS as usual, only faster Smiling

I have customized some of the keyboard shortcuts in Bluefish which helps a little. I also plan to put in a feature request at Quanta Plus.

I've always made a lot of use of shortcuts like this - I remember back in the 90's I kept using this really obscure little code editor just because it let me customize the keyboard shortcuts and had shorcuts for all the HTML tags. That was a big help back in the days of table layouts.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

I have a username on the KDE bugs database, am entering your request now. Will post a link when I've got one. Smiling

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Link to the wishlist item. Does that explain what you want and why?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

I think Zend Studio does that kind of thing, but I don't think it's open source or anything like that.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

matt wrote: I think Zend Studio does that kind of thing

Yeah, I was wondering whether Eclipse might do the job too, but Eclipse is such a pain in the arse to setup. Smiling

Zend studio would work on Ubuntu though, that would be a step in the right direction. Smiling

a Padded Cell our articles site!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Okay, I'll check out Zend studio.

I'm working with Screem right now and it does do the HTML tag completion the way I'd like. It's a bit buggy though, although I've had problems with a lot of editors when working directly from a SSH connection.

I've also got jedit installed but am having problems getting the JRE installed so it will work. (might be some plugins for jedit that could work).

I should look at CSS editors too - I write a lot more CSS than HTML these days!

They have: 4 posts

Joined: Jan 2008

Megan wrote: Does anyone know of a text/code editor for Linux that can do Dreamweaver style tag completion?

In 2001, I had to use DW. I found it slowed production terribly, and haven't touched it since. So, bear with me if I misunderstand your needs.

Quote: usually I have the content already in place and am just putting the mark-up around it. Immediate tag completion is just annoying.

Emacs in html helper mode will insert tags, and move the point (cursor) to between them, ready to type. If you are marking up existing content, simply select the region by either dragging the mouse, or mark one end and move the cursor to the other. Use ctl-u to tell Emacs you're marking the region, and insert the tag. Emacs will put opening and closing tags at the beginning and end of the region respectively.

Quote: This, combined with DW's CSS completion features is really preventing me from doing more work on Linux. Does anyone know of a Linux editor that can do that? It's not really a GUI-based CSS editor, just inline auto-completion and suggested values.

Maybe because I abandoned table layouts for css-p nearly five years ago, I just don't see this 'feature' as at all necessary. There's not that many properties that are commonly used. Bookmark the css and html specs at W3 for info on the others.

One more comment on Emacs: A lot of folks are intimidated by the power and versatility Emacs offers. The manual runs into the megaBytes. But, you only need to learn the stuff you use. When/if you need another functionality, then you can take the time to learn it.

cheers,

gary

Anyone can create a usable website. It takes a graphic designer to make it slow, confusing and painful to use.

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

gary.turner wrote: Maybe because I abandoned table layouts for css-p nearly five years ago, I just don't see this 'feature' as at all necessary. There's not that many properties that are commonly used. Bookmark the css and html specs at W3 for info on the others.

Um, I haven't written table layouts for about that long either. I just don't like typing every character by hand, and never have. This used to be more of a problem with HTML, but as I mentioned above I write a lot more CSS than HTML these days. And it's not that I don't know what the properties are, it's just that I don't want to type them all out by hand. And for those properties with limited values auto-complete saves me from having to look up what the options are if I don't happen to know.

And what do you mean by "There's not that many properties that are commonly used."??

Everyone has editing features they value more than others - no need to put down someone else's preferneces just because you don't agree.

I have finally found that Quanta Plus will actually do this, you just have to make sure the document is identified as CSS and press space Smiling Yay!

They have: 4 posts

Joined: Jan 2008

Megan wrote: I just don't like typing every character by hand, and never have. This used to be more of a problem with HTML, but as I mentioned above I write a lot more CSS than HTML these days. And it's not that I don't know what the properties are, it's just that I don't want to type them all out by hand. And for those properties with limited values auto-complete saves me from having to look up what the options are if I don't happen to know.

Ah, OK. I've always found that sort of 'help' to be contra-productive, and simply typing the property/value pairs to be faster than arrowing through a selection list to choose, or worse, taking my hand from the keyboard to operate a mouse. For simple completions, you still have to type enough to disambiguate the property. By the time you typed "margin-bottom-c" with a tab or alt-tab or two thrown in, you could have finished the "olor:".

Quote: And what do you mean by "There's not that many properties that are commonly used."??

There are only about 35 properties that we use with any regularity. The other 100 or so are redundant, special purpose (eg. aural) or IE doesn't support them.

Quote: Everyone has editing features they value more than others - no need to put down someone else's preferneces just because you don't agree.

There was no intent to put down anyone's preference, and if you felt I did, you made an incorrect inference.

cheers,

gary

Anyone can create a usable website. It takes a graphic designer to make it slow, confusing and painful to use.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Everyone has editing features they value more than others - no need to put down someone else's preferneces just because you don't agree.

Go easy on the poor chap: he's an Emacs user. He hasn't even realised that Vim is a far superior editor yet!

Muhahahaa, sorry, couldn't resist it. Laughing out loud But seriously: welcome to the forums Gary, good to have you with us. Am only joking about Emacs, there's another guy around here who uses it, I try baiting him all the time too.

Smiling

a Padded Cell our articles site!

They have: 4 posts

Joined: Jan 2008

JeevesBond wrote:
Go easy on the poor chap: he's an Emacs user. He hasn't even realised that Vim is a far superior editor yet!

Muhahahaa, sorry, couldn't resist it. Laughing out loud But seriously: welcome to the forums Gary, good to have you with us. Am only joking about Emacs, there's another guy around here who uses it, I try baiting him all the time too.

Smiling

Those of us who use superior technologies are quite used to the snipings of the jealous, unwashed masses. Wink I will stipulate that Vi(m) is a worthy runner-up to Emacs.

Thanks for the welcome. I was researching a question on CSSCreator forums when I ran into Complete Guide to Pre-installed Fonts by Megan. Great article; it's bookmarked as a basic reference. I figured I'd see what the forum looked like.

Drop in at cssc and add something to the chaos. I'm kk5st over there.

cheers,

gary

Anyone can create a usable website. It takes a graphic designer to make it slow, confusing and painful to use.

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Incidentally, I've solved this problem for myself by writing markup like so:

(:ul
(:li (:a :href "http://example.com"
          "Example")))
'

The closing token is a single character. Smiling

JeevesBond wrote: there's another guy around here who uses it, I try baiting him all the time too.

Who could that be? Wink

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Drop in at cssc and add something to the chaos. I'm kk5st over there.

Nice, a sister site. It's a Drupal-based board. Smiling

Who could that be?

Actually I've stopped baiting you as I can just tell you fire up gvim when you think no-one else is looking. Anyway I haven't got anything to prove, Emacs soooo jumped the shark when Stallman stopped maintaining it. Laughing out loud

Didn't the new maintainer say: 'Emacs should be more like Eclipse. "Eight Megabytes And Constantly Swapping" just doesn't cut it anymore, we need "Eight Terabytes And Constantly Swapping." With this in mind I'd like to announce the renaming of Emacs to "ETacs Vistaclipse Enterprise Edition."'

That's what I heard anyway. Laughing out loud

a Padded Cell our articles site!

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

JeevesBond wrote: Actually I've stopped baiting you as I can just tell you fire up gvim when you think no-one else is looking.

Didn't the new maintainer say: 'Emacs should be more like Eclipse. "Eight Megabytes And Constantly Swapping" just doesn't cut it anymore, we need "Eight Terabytes And Constantly Swapping." With this in mind I'd like to announce the renaming of Emacs to "ETacs Vistaclipse Enterprise Edition."'

I'm not a fan of Eclipse, but I look forward to trying eclipse-mode when it's released. c.f. http://xkcd.com/378/

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.