Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Ultraedit Syntax Highlighting and POD unmatched quotes

by QM (Parson)
on Nov 20, 2012 at 14:07 UTC ( #1004720=perlquestion: print w/replies, xml ) Need Help??
QM has asked for the wisdom of the Perl Monks concerning the following question:

Are there any tweaks to the language file that will let Ultraedit handle unmatched POD quotes correctly in syntax highlighting?

For instance:

=item blah What's going on here? =cut

Any code after =cut will appear to be part of a string (as will everything after the lone quote), until the next open quote. Large sections of code are thus not syntax highlighted.

Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re: Ultraedit Syntax Highlighting and POD unmatched quotes
by choroba (Bishop) on Nov 20, 2012 at 15:48 UTC
    I do not have Ultraedit to test against, but maybe a simple
    =for Ultraedit '
    before the =cut can help?
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
      Having a deeper look at the code I'm hacking on, it didn't start the main POD block with =pod. My uew file only had this defined for block comments:
      Block Comment On = =pod Block Comment Off = =cut

      Adding in =item to the uew file, and adding =pod to the perl file (it was missing) fixed a lot of problems.

      Block Comment On Alt = =item Block Comment Off Alt = =cut

      Still, UE should allow multiple pairs of these (and a few other things).

      Quantum Mechanics: The dreams stuff is made of

Re: Ultraedit Syntax Highlighting and POD unmatched quotes
by Anonymous Monk on Nov 20, 2012 at 22:18 UTC
    Switch to SciTE/Padre/Kephra... very close to UltraEdit, better highlighting support
Re: Ultraedit Syntax Highlighting and POD unmatched quotes
by afoken (Abbot) on Nov 21, 2012 at 18:56 UTC

    Yes, UE's syntax highlighing has several problems. It was designed too simple, based simply on pattern matching and not on understanding the language, and so some extensions were added. They fixed some problems, but not all. Multi-line strings still confuse the highlighter, and embedded languages (Javascript and CSS in HTML, SQL and POD in Perl) are simply impossible. It's a mess, and no extension will be able to fix it.

    Live with it, add a # ' here and a # " there, or use a different editor. I'm still searching for one. Some came close, but I've not yet found a single editor having all the features that I want to have. Emacs seems to have pretty good syntax highlighting, and it has tons of other features, but I simply don't like it. Too many features, too much wannabe operating system, too much desktop environment, and somewhere burried below all features lives a tiny editor.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1004720]
Approved by ww
and the monastery is silent...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (13)
As of 2018-07-23 13:41 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (468 votes). Check out past polls.