Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: PM Code Tidier/Highlighter

by ccn (Vicar)
on Oct 28, 2008 at 08:03 UTC ( #719931=note: print w/replies, xml ) Need Help??


in reply to PM Code Tidier/Highlighter

I have Greasemonkey and PMTidy.user.js installed, but it doesn't work for some reason. I don't see any links below [download]

What should I check to make it works? (FF 3.0.3, Ubuntu 8.04)

Replies are listed 'Best First'.
Re^2: PM Code Tidier/Highlighter
by juster (Friar) on Oct 28, 2008 at 23:36 UTC

    Oops that is entirely my fault. I forgot to test with PM's code wrapping feature turned off. I have fixed this major oversight and many smaller problems.

    New script version is: PMTidy-1.2.user.js.

    Almost all formatting issues are fixed. The one I couldn't figure out is how to get the trailing newline being exactly the same as the original code.

    I was having problems getting Greasemonkey to give me a fresh copy of the script. It seemed to use a cached version and even when I deleted the temporary file and cleared my browser history it still gave me an old version. Maybe I have to dig into the .mozilla directory to find a file in there to delete. An easier solution was to give the script a new file name on the webserver: PMTidy-1.2.user.js (same link as above).

    I also updated the perl script without thinking about the fact that it might screw anyone who might be using the old script. If it does I'm sorry and try the new script.

    Thank you ccn, for trying this and telling me there was a problem. I'm hoping I fixed it. If not please tell me.

Re^2: PM Code Tidier/Highlighter
by juster (Friar) on Nov 13, 2008 at 06:10 UTC

    I have created a new version that fixed many problems. Highlighted, wordwrapped code should have identical whitespace now. The user script is now more dynamic and properly handles font tags in the code or around them.

    New version is PMTidy 1.4 (click to install). The cgi script has become much larger so I won't post it but you can view it offsite.

      It's really good now. Thanks, it makes monk life a bit more colourful

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2021-03-03 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (70 votes). Check out past polls.

    Notices?