Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(OT) Wanted: Compact Perl Syntax High-lighting Editor

by Spidy (Chaplain)
on Oct 31, 2006 at 20:20 UTC ( [id://581555]=perlquestion: print w/replies, xml ) Need Help??

Spidy has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Fellow Monks,

Lately, I picked up a 64Mb USB drive, in order to transfer my code from work/school to home. At work/school however, I'm limited to using notepad when writing my scripts. Notepad is all well and good, but I'd like something better.

Does anyone know of an editor that I would be able to install and run off of a USB drive that does syntax highlighting?



Thanks,
Spidy

2006-10-31 Retitled by GrandFather, as per Monastery guidelines
Original title: 'USB Drive Suggestions'

  • Comment on (OT) Wanted: Compact Perl Syntax High-lighting Editor

Replies are listed 'Best First'.
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by Old_Gray_Bear (Bishop) on Oct 31, 2006 at 20:39 UTC
    I am rather fond of vim, which installed at 1.2M. Damian Conway has a set of vim customization macros to die for, see his presentation at the last OS-Con.

    ----
    I Go Back to Sleep, Now.

    OGB

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by GrandFather (Saint) on Oct 31, 2006 at 20:47 UTC
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by planetscape (Chancellor) on Nov 01, 2006 at 01:56 UTC

    If you decide to go with vim, I would like to make you aware of perl-support.vim, whose vim.sourceforge.net site appears to be down ATM, unfortunately. But I think you would find it useful. :-)

    HTH,

    planetscape
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by swampyankee (Parson) on Oct 31, 2006 at 20:58 UTC

    I second grandfather'sOld_Grey_Bear's suggestion to try vim. While I am fond of emacs, "small" is one word I would not use to describe it.

    You could also try nano, but I've never used it.

    emc

    At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

    —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by liverpole (Monsignor) on Nov 01, 2006 at 01:02 UTC
    This is almost turning into a poll :-)

    My $0.02 would also be to go with vim, and its "graphical" version gvim too.  It's an amazing tool, which has come a long, long way from its vi roots.

    Ironically, I started out as a fan of emacs (the other great editor, originally written by Richard Stallman).  At my first computer job, and on my first Unix system (more than 20 years ago), I was enamored of emacs, and found it very useful to write macros for work.

    But at my second company, emacs wasn't available.  The best choice by far was vi; it was the most flexible and most reliable available on the Data General computer at that time.

    Ever since learning vi I've been hooked on it, and the transition to vim/gvim was very simple when it became available.

    You should be aware that it may seem a little tricky to use at first.  You have to get used to being in "movement mode" versus "edit mode" (in emacs you're in "edit" mode all the time, even when moving around).  But once you've used it enough that your fingers have "memorized" it, it can really become natural and smooth to use.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

      I'll go along with this, too, with a similar story. I very briefly used emacs, but couldn't remember the (seemingly) 4 step key commands - control-w control-x, or whatever. I forget, obviously. Thankfully ;)

      I did a long tour of plain vanilla vi (my early Linux/FreeBSD days, then a long contract as a Solaris admin), thinking I was Mr. Vi - woo, look at me! setting marks, yanking to named buffers, and my perl background helped a lot with doing 'complicated' find/replace regexen on the vi command line. Never got exposed to vim or its advanced features.

      Until a few weeks ago. Boy, have I been missing out. Now I'm browsing the file explorer, stepping through my buffer history, opening vertical and horizontal splits. And I've setup my first kep mappings and macros, naturally containing perl-isms. Including the first one of which I was especially proud, adding a POD entry for the word under my cursor, a few lines above my current line (for ease in creating POD for subroutines).

      I got my start down the advanced vim path partly by shoulder surfing an apparent vim wizard at the office, but also right here at the monastery with the help of this single solitary link: .vimrc for perl programmers. That node (and the many helpful replies therein) merely brush the surface. There are other tips (there's a cool tip for a key mapping that filters your source through perltidy contributed by cees), links to additional perlmonks discussions regarding vi/vim, links to offsite tutorials (one of which was written up by TVSET), and a lot of other really good reading material.

      You're right, getting around in vi/vim can be a little tricky at first - I know it was a little tough to remember way back when. But these days, I get into the equivalent of notepad/textedit and inadvertantly leave little clues around the file that indeed, I am a vim user.

      <ESC>:wq!


      --chargrill
      s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by BrowserUk (Patriarch) on Oct 31, 2006 at 20:47 UTC

    If you don't mind laying out a whole £16.50/$30.00, then I can highly recommend this one. They allow you to download a full featured trial copy first so you can convince yourself it is worth the cost.

    It's not perfect; and far from the most complex or feature rich editor, but it has pretty much everything I need and will take you no time at all to get comfortable with as most everything you do in notepad will work immediately. And everything else is available from menus, as well as being bound or bindable to keystrokes.

    You'll also need to download syntax definitions for Perl and other languages, along with dictionaries for spell checking if you want them,

    The entire thing installed, including help files, a dozen or so syntax definitions and dictionaries for 5 langauges comes in at under 5MB.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      I also have long enjoyed the simple utility of TextPad.

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by imp (Priest) on Oct 31, 2006 at 21:38 UTC
    A 64mb usb drive is enough to install vim, which is my favorite editor in any environment.

    Alternately, you can use ssh to connect to a remote server and use whatever editor you like. I recommend putty , which is only 412kb and doesn't need to install anything.

    The prices on USB drives has fallen dramatically, so you could upgrade to a 1GB drives for $20. The 256mb drives will probably start showing up in cereal boxes in a few years. ;-)

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by ikegami (Patriarch) on Oct 31, 2006 at 21:47 UTC
    I use UltraEdit. Feature rich. < 4MB (well, v10.00c is).
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by johngg (Canon) on Oct 31, 2006 at 21:52 UTC
    My favourite editor is nedit and it does syntax highlighting for lots of languages. It exists mainly in the *nix world but I believe you can run it on Win32 via Cygwin. nedit is pretty small but I don't know how much or little of Cygwin you would need as well.

    Cheers,

    JohnGG

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by Popcorn Dave (Abbot) on Oct 31, 2006 at 21:27 UTC
    You might also look at ConText assuming you're on a windows system. It's free and you can change the color of your highlighting to your preference. It also does highlighting for a lot of other languages as well.

    Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

      I'll second the use of ConTEXT as I use it at work. It even handles the difference between Windoze/DOS text files and *nix files.

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by stonecolddevin (Parson) on Oct 31, 2006 at 23:55 UTC

    I personally like Notepad++. It's only 1.18MB, and it has some great syntax highlighting features.

    meh.
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by kwaping (Priest) on Oct 31, 2006 at 22:24 UTC
    On the off-chance you're using Mac, I recommend BBEdit (< 34mb installed). If you're using Windows, count my vote for UltraEdit.

    ---
    It's all fine and dandy until someone has to look at the code.

      I'd actually recommend TextWrangler for the specific application mentioned. (TextWrangler fills the role of the what was previously BBEdit Lite)

      You lose the glossary/macros/clippings/whatever they want to call them this verson (you can work around this with text filters), and some of the HTML features, but it'll still do the job requested, at a much smaller size. (and, well, it's free, which is nice, too)

      Disclaimer: I have been a beta tester for a few BBEdit releases, but I get no compensation other than comp'd software

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by Anonymous Monk on Nov 01, 2006 at 10:08 UTC
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by wjw (Priest) on Oct 31, 2006 at 21:17 UTC
    TextPad is the way to go. I have used others, but if I am forced onto the windows platform, it is the best tool with the most support that I have found. Incidently, in addition to perl syntax high lighting, it has many more which are downloadable... and you can make your own, which is what I did when working on Adept Robots. And yes it should fit very nicely on your USB drive/key.

    ...the majority is always wrong, and always the last to know about it...

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by JohnMG (Beadle) on Nov 01, 2006 at 04:51 UTC

    Hi Spidy.

    You might like GNU nano. It's syntax highlighting is pretty basic (a handful of regexes that color what they match -- last match wins), but works well enough most of the time.

    You might not want to be too picky about how agressively your editor syntax-highlights Perl though. It's very tough to do it correctly. It's been often said that only perl can parse Perl, and syntax-highlighting it requires parsing it to some degree.

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by cLive ;-) (Prior) on Nov 01, 2006 at 18:40 UTC
    PFE. No longer developed, but a great little App. The zip file is 608Kb. I always whack it on Windows boxes when I have to code on them. Works on XP even though it's not listed as supported.
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by zentara (Archbishop) on Oct 31, 2006 at 21:01 UTC
    If you can find it, there is a binary version of mc, "Midnight Commander" that will run on win32. It's built-in editor does Perl syntax highlighting. Although I doubt that is what you were after, it does run well and is small. It's console mode.

    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by Anonymous Monk on Nov 01, 2006 at 12:13 UTC
    Lately, I picked up a 64Mb USB drive ... Does anyone know of an editor that I would be able to install and run off of a USB drive that does syntax highlighting?

    Are there editors that require more than 64Mb of disk space? Even Emacs should be able to fit on a 64 Mb drive.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found