Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

ConTEXT looked interesting, so I decided to check it out. Unfortunately, there was one really annoying thing about it that was so obvious, I wonder if there's something wonky with the copy I downloaded.

I went to edit a C or Perl file, and created a new function, as thus:

sub foo {

When I pressed enter, though, instead of indenting two spaces from the column "sub" started in (as it should according to the setting of 2 in C/Java Block Indent), it indented two spaces from the column the opening curly brace was in, like so:

sub foo { # When I pressed enter, #<< cursor started here.

It worked fine if I put the opening curly on the next line, but that totally goes against my style. This just seems so off that I had to ask... Is this normal? Does your copy do that? Note, I downloaded the newest version available on their website (0.97.2a). I haven't (yet) tried an older version. Er, make that "They don't have an older version available."

As a side note, I have to say that I personally use Vim exclusively, and usually use GVim unless I'm editing something quick in the console, but I'm evaluating other Windows editors because my girlfriend is taking a couple of programming classes now and she needs something decent, that isn't as complicated as Vim.

bbfu
Black flowers blossom
Fearless on my breath


In reply to Re2 (ConTEXT): Text Editors by bbfu
in thread Text Editors by eweaverp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (4)
    As of 2020-10-27 23:11 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My favourite web site is:












      Results (259 votes). Check out past polls.

      Notices?