Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: One button text processing

by nysus (Parson)
on Jul 15, 2003 at 07:24 UTC ( [id://274295]=note: print w/replies, xml ) Need Help??


in reply to Re: One button text processing
in thread One button text processing

Tilly,

Thanks for the tips, bro. I especially like the first one, if I understand you correctly. Instead of using arbitrary numbers to match code, just use a hash. Very neat. I'll try that out.

As far as learn my editor better, well, one of the major reasons I wrote this program is because I do web design with Dreamweaver which does not have change of case functionality. Also, I use UltraEdit in Windows which also has limited text processing capabilities. It's no Vim or Emacs as far as shortcut keys go. However, UE works very well as a cheap IDE, allowing me to run test code and debug Perl programs very quickly. I tried using Vim (which I used fairly extensively when I used Linux) in Windows the other night but found it a huge pain to use just to test some simple code compared to UE. And I don't really do enough programming to be able to take full advantage of a Vim or Emacs. I've written maybe 6 to 10 small Perl programs in the last year. So by the time it's time for me to write another program, I've all but forgotten what what the shortcut keys are. It gets very frustrating having to look up the simplest keystrokes over and over. But I'm certainly open to suggestions for a better IDE/editor for Perl on Windows if you can recommend one.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re: Re: Re: One button text processing (OT)
by bm (Hermit) on Jul 15, 2003 at 11:02 UTC
    Also, I use UltraEdit in Windows which also has limited text processing capabilities

    I beg to differ on that one...I am using version 10 and I find it to be as feature rich as I need. No Emacs sure but still a professional editor...what can't you automate?

  • Upper case: Alt F5
  • Capitalise: F5
  • Advanced->configuration->key mapping
  • ...

    Having said that, I like your utility.. :-)

      I'm not knocking UE. It's all a part-time programmer like me needs. But I highly doubt a power programmer would use it. That being said, UE has shortcomings. For example, I don't see a way to do sentence case. And it's RE engine isn't capable of knocking out any heavy duty search and replace functions.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
      $nysus = $PM . $MCF;
      Click here if you love Perl Monks

        But I highly doubt a power programmer would use it

        why do you say that? Because it it proprietory? Because it has a graphical interface?

        For example, I don't see a way to do sentence case

        Try selecting the word you want to capitalise and hit the F5 key. But this is not something you really need when editing code....UE is designed with editing code in mind.

        And it's RE engine isn't capable of knocking out any heavy duty search and replace functions.

        :-) But have you looked??

        Do Ctrl - F to bring up the Find dialogue, hit the 'Help' button to bring up the help for text searching. This brings up the 'simple' regular expressions (eg - ^p for a crlf). Halfway down the page there is a link to 'Full regular expressions'. You can choose *nix or UE syntax, and the regex features are extensive: I would wager more than you will ever need.

        I am not sure what a power programmer is, but this fulltime programmer has no complaints with UE after 4 years - 2 years of using Emacs before that - <aside> "which is a nice OS, but lacks a good text editor" :-) (anon) </aside>. I now use UE to edit my *nix files across samba!

        I recommend that you take a good long look at the feature set of UE - or upgrade to the latest version.

        Hope this helps.

Re: Re: Re: One button text processing
by tilly (Archbishop) on Jul 16, 2003 at 21:44 UTC
    For more editor choices than you can shake a stick at, see Code Editors and Development Environments. But still I think that bm underscored the value in learning your existing editor better.

    However you're right that this will not help you with Dreamweaver. And from experience I can tell you that editing your text with a small Perl utility will work, and gives you lots of opportunity to learn Perl better. Whether or not this is more useful to you than learning editors in general is a judgement call.

Re: Re: Re: One button text processing
by chanio (Priest) on Jul 16, 2003 at 05:24 UTC
    nysus,

    UltraEdit looks very much like http://www.chami.com/html-kit/

    May be that you should try it (FREE). It has some macro stuff that looks like JavaScript and there is a lot of modules to extend functionality as much as you want.

    Anyway, I am fond of Xemacs. But HTML-KIT has also a module that helps editing Perl scripts, checks syntax and runs perl scripts...

Log In?
Username:
Password:

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

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

    No recent polls found