Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Best perl editor on Ubuntu/Linux

by jdrago999 (Pilgrim)
on Sep 08, 2011 at 18:49 UTC ( [id://924905]=note: print w/replies, xml ) Need Help??


in reply to Best perl editor on Ubuntu/Linux

gEdit (it is right there under Applications->Accessories->"Text Editor")

It's simple, does not crash and has syntax highlighting for everything. gEdit correctly handles encodings (utf8, utf16, etc) and different line-endings.

MOST IMPORTANTLY: when I hit the "tab" key I can have gEdit give me SPACES. Not TABS.

Replies are listed 'Best First'.
Re^2: Best perl editor on Ubuntu/Linux
by elTriberium (Friar) on Sep 08, 2011 at 19:23 UTC
    MOST IMPORTANTLY: when I hit the "tab" key I can have gEdit give me SPACES. Not TABS.
    Nearly every slightly advanced editor can do that.
Re^2: Best perl editor on Ubuntu/Linux
by cjb (Friar) on Sep 09, 2011 at 13:01 UTC

    How is incorrectly encoding tabs as spaces an advantage?

    I know this is probably a holy war, but I have a huge SPACE bar on my key, it's sole job is to insert spaces. I have a tiny little (by comparison) tab key which is supposed to insert tabs, anything else is surely broken behaviour?

      I know this is probably a holy war, but I have a huge SPACE bar on my key, it's sole job is to insert spaces.

      Precisely. If I want to indent/outdent an entire block of code, I prefer to select multiple lines all at once then press the "tab" key (or shift+tab) until the indentation for that block of lines is to my liking. If this behavior were somehow tied to the space bar, that would be weird.

      How is incorrectly encoding tabs as spaces an advantage?

      It is not that TAB character (that is equivalent to ascii 0x09) is being encoded as spaces, but think of it as binding the function of "inserting the appropriate number of spaces" to the TAB key.

      At least in emacs, the functionality can be bound to any key that one prefers, not necessarily the TAB key.

      The advantage is that a single keypress of TAB would indent the line as needed, instead of entering the correct number of multiple space characters.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://924905]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found