Select code button for CODE/PRE blocks
|
Feb. 12, 2013, 08:39 PM
(This post was last modified: Feb. 12, 2013 08:41 PM by prxymouse.)
Post: #1
|
|||
|
|||
Select code button for CODE/PRE blocks
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 |
|||
The following 2 users say Thank You to prxymouse for this post: chatterer, usr |
« Next Oldest | Next Newest »
|