• $#array was being seen as a comment (evaluates to the highest element in @array). I modified the following two lines of shBrushPerl.js to fix it:

    line 53:
    original regex: ‘#[^!].*$’
    new regex: ‘[^$]#[^!].*$’

    line 57:
    original regex: ‘(\\$|@|%)\\w+’
    new regex: ‘(\\$|@|%|\\$#)\\w+’

    I only noticed this because I’m using the plugin on my blog and $#array was causing everything after the ‘#’ to be highlighted as a comment. Other than that, the plug-in is very nice. Hope this helps someone. ??

    https://www.ads-software.com/extend/plugins/auto-syntaxhighlighter/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Auto SyntaxHighlighter] Small bug with Perl syntax highlighting’ is closed to new replies.