Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: WWED

by premchai21 (Curate)
on Apr 15, 2002 at 01:03 UTC ( #159055=note: print w/replies, xml ) Need Help??


in reply to WWED
in thread The One True Style of indentation:

Actually, that's ambiguous...

M-x cperl-set-style Enter style: <TAB> BSD CPerl GNU PerlStyle C++ Current K&R Whitesmith

So, Emacs Would Do one of the seven/eight styles above, depending on how it's customized. :-)

Replies are listed 'Best First'.
Re: Re: WWED
by belg4mit (Prior) on Apr 15, 2002 at 02:24 UTC
    Emacs does not default into cperl-mode though. It defaults into the less robust perl-mode.

    --
    perl -pe "s/\b;([mnst])/'\1/mg"

      Not my Emacs -- I use XEmacs 21, which defaults into cperl-mode. The version and type of Emacs wasn't specified in the original post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159055]
help
Chatterbox?
[shmem]: Lady_Aleena: what editor are you using, on what platform?
[Lady_Aleena]: shmem, geany on Debian jessie.
[shmem]: some experience with vim?
[Lady_Aleena]: None
[shmem]: I don't know geany, and don't know whether it has support for ctags.
[Lady_Aleena]: ctags?
[shmem]: ctags is a program which (recursively) extracts the symbols from source and stores them in a one-file database. This allows you to query the locations where these symbols (e.g. a subroutine name) are used anywhere in the source code tree...
[shmem]: ...from inside the editor.
[shmem]: apt-get install exuberant-ctags
[Lady_Aleena]: I think I heard vim has a big learning curve.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-04-27 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (505 votes). Check out past polls.