![]() |
|
Select code button for CODE/PRE blocks - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38) +--- Forum: FIP (/forumdisplay.php?fid=36) +--- Thread: Select code button for CODE/PRE blocks (/showthread.php?tid=2077) |
Select code button for CODE/PRE blocks - prxymouse - Feb. 12, 2013 08:39 PM Not sure how to present this but here goes. These two filters combined will add a SELECT CODE button to any PRE or CODE tags in can find on a page, this is useful when a forum does not provide a "select code" function out of the box, like this forum for example. It helps you select the code quickly. As a bonus it wraps CODE and PRE tags in a table so you can press left-ctrl + mousebutton to select the code in Gecko based browsers (Firefox). It doesn't copy the code the clipboard as I prefer to do that myself ![]() Step 1 - create a block list, add urls for website you want to use these filters on here - one per line say prxbx.com Code: List.CodeList = "..\Lists\CodeList.txt"Step 2 - add these two filters Code: Name = "Forum CodeList JS"If you wish you could move the JS code to a JS file and load it that way. Not sure where I found that code, I think it comes from JQuery but could be mistaken. Many thanks to JJoe for helping to figure out how to use LST Count - see here http://prxbx.com/forums/showthread.php?tid=2069 |