http://qs1969.pair.com?node_id=292889


in reply to 2Re: a Couple of questions!
in thread a Couple of questions!

Making a table is so much easier with the mouse

With a decent editor1, this is simply not true. A few lines of lisp in your configuration go a *long* way toward reducing the amount of typing you have to do. In cperl-mode (with my custom enhancements in the hook), I hit one keystroke for my insert-tag function, type in table, hit Enter, and the following is inserted:

<table width=\"100%\"><thead> <tr><th></th></tr> </thead><tbody> <tr><td></td></tr> </tbody></table>
And it leaves my cursor positioned inside the th. Similar shortcuts exist for other common tasks. My fingers never have to leave the keyboard.


1 -- By <q>a decent editor</q> I of course mean Emacs, but this is not intended to start an editor war; feel free to customise your editor of choice in a similar fashion, if it provides the facilities for you to do so.

$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

Replies are listed 'Best First'.
4Re: a Couple of questions!
by jeffa (Bishop) on Sep 26, 2003 at 15:17 UTC

    I think we are comparing apples and oranges here ... I recently designed a web site that used some pretty complex table arrangements for the layout of certain 'widgets'. I used Macromedia Fireworks to design the graphic first, then i "sliced" the graphic into pieces, keeping some elements as graphics while replacing others with modifiable text.

    Emacs may be a nice editor, but it won't do that, as it really only deals with text. If i have time, i can recreate an example, but can't show you the one i made ... contract. :(

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)