Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

WOOT! We have lsl highlighting in the wiki now.

Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-08-2007 19:52
Already marked all of mine up after seeing Strife had done his XTEA script. Simply use <lsl> </lsl>

Example: https://wiki.secondlife.com/wiki/3D_Radar
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-08-2007 23:36
so that's what the wiki update was about... so nice of them to say so =P I'll tag a few later
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Gordon Wendt
404 - User not found
Join date: 10 May 2006
Posts: 1,024
12-09-2007 00:41
It's nice but like the <pre> tag it still causes hell in firefox in terms of font size, I problem I haven't been able to fix even tweaking my monobook.css file (wiki.secondlife.com/wiki/<yourusername>/monobook.css) (assuming you haven't changed the skin your using in preferences in which case it would be that skin's name.css) which should fix it when I'm logged in :(
_____________________
Twitter: http://www.twitter.com/GWendt
Plurk: http://www.plurk.com/GordonWendt

GW Designs: XStreetSL

Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-09-2007 03:29
course the links are wrong and it doesn't highlight hex-integers or scientific notation floats; and the underlining is annoying.

I use this GM script to fix the links and underlining.
CODE

// ==UserScript==
// @name LSL Style
// @namespace http://home.comcast.net/~mailerdaemon/
// @include https://wiki.secondlife.com/*
// @include http://wiki.secondlife.com/*
// ==/UserScript==

GM_addStyle("pre.code a{ text-decoration:none; }")
var regex = /LSL_/;
var res = document.evaluate("//pre[@class='code']/a[contains(@href, 'LSL_')]", document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (i = 0; link = res.snapshotItem(i); ++i) {
var t = link.attributes.getNamedItem("href");
t.value = t.value.replace(regex, "");
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey