Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: The most annoying common way to get a string literal in Perl is...

by gri6507 (Deacon)
on Jun 16, 2004 at 17:22 UTC ( [id://367321]=note: print w/replies, xml ) Need Help??


in reply to The most annoying common way to get a string literal in Perl is...

is it just me, or does everyone else's editor make it real hard to distinguish ' from " (and also `)? Which font makes it easy?

Replies are listed 'Best First'.
Re^2: The most annoying common way to get a string literal in Perl is...
by belg4mit (Prior) on Jun 17, 2004 at 13:52 UTC
    Use a monospace font, they're better for important text things like ascii-art and coding anyways. I prefer Lucida Console

    --
    I'm not belgian but I play one on TV.

Re^2: The most annoying common way to get a string literal in Perl is...
by iburrell (Chaplain) on Jun 16, 2004 at 17:44 UTC
    It depends more on the font you use. The X fonts made the backtick more vertical than it should be. The apostrophe (single quote) was also slightly angled. This led to the backtick and apostrophe being used as way of faking smart quotes.

    With newer fonts, the backtick is more angled and easier to distinguish. Try switching the font on your editor or terminal window to something else. Any of the scalable (TrueType) fonts would do it.

      Or most any font at 14 or 18 pt. :) I myself actually tend to use Courier New, I hate trying to code with a variable-width font!

      - - arden.

Re:x2 The most annoying common way to get a string literal in Perl is...
by grinder (Bishop) on Jun 17, 2004 at 20:54 UTC
    Which font makes it easy?

    I'm quite fond of Vera Sans Mono and I like Andale Mono. Both are nice sans serif fixed-width fonts, much nicer than Courier.

    Vera Sans looks gorgeous, except that maybe the minus glyph is slightly too discrete.

    And I'm not mad about the zero glyph in Andale. It has a horizontal bar running through it, to make it easy to distinguish it from the uppercase O glyph. I bar my zeros when I put pen to paper (when writing code longhand) but I find it annoying in a screen font). But the parens and curlies are very easy to distinguish, choose your poison.

    But both are definite improvements on Courier and Lucida Console.

    - another intruder with the mooring of the heat of the Perl

Re^2: The most annoying common way to get a string literal in Perl is...
by moof1138 (Curate) on Jul 02, 2004 at 21:56 UTC
    My favorite font that makes these very distinct (as well as many other characters that can be a pain to distinguish) is ProFont. Vera Sans (mentioned above) is nice too, though it doesn't looks as nice as it scales down.
Re^2: The most annoying common way to get a string literal in Perl is...
by naChoZ (Curate) on Jul 06, 2004 at 13:02 UTC

    I was a lucida console fan for a long time, but my favorite has become neep. It looks very nice both small and large. I run it at 14 point (-*-neep alt-medium-r-normal-*-14-*-*-*-c-*-iso8859-1 ) at 1600x1280 and it looks great. No trouble with ", ', or ` either.

    --
    Diplomacy is the art of saying "Nice doggie" until you can find a rock.
    naChoZ

Re^2: The most annoying common way to get a string literal in Perl is...
by sintadil (Pilgrim) on Jul 07, 2004 at 02:37 UTC
    I do all of my coding on a Unix console, which doesn't suffer from those things. If $^O eq "Win32", you can get console versions of Unix editors.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found