General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Need wiki edit help
Posted by: JamesD
Date: August 16, 2011 09:06PM

I am trying to update the expressions area of MacroLanguage2. This is needed to include new information that was found by Sira. I have the new information in the sandbox but the table there has an odd appearance to the right hand edge. I could accept the bad edge since the information is now correct, but I am greedy and want both the information and edge to be right.

I hope someone can provide code that will fix the right edge of the table.

MacroLanguage2 -- http://kmeleon.sourceforge.net/wiki/MacroLanguage2#expressions
Sandbox -- http://kmeleon.sourceforge.net/wiki/SandBox
Wiki markup -- http://kmeleon.sourceforge.net/wiki/WikiMarkup
Extended markup -- http://kmeleon.sourceforge.net/wiki/ExtendedWikiMarkup
Siria's infomation -- http://kmeleonbrowser.org/forum/read.php?2,118409

Options: ReplyQuote
Re: Need wiki edit help
Posted by: siria
Date: August 16, 2011 09:56PM

Am greedy too, and curious yet more, so went and looked grinning smiley
This syntax thing is too touchy really: It was just the blank after the last | in the "or" line! Crazy...
You're working very hard at this, thank you James smiling smiley
Have too little time currently and am working on a new macro, so am a bit blocked for other stuff at the moment. Hope to get a closer look awhile later...
PS: Noticed that if one of the arguments for "and/or" is not a variable, but some action like "index(...)", then additional brackets () are needed around both arguments left and right, even if the other one is just a variable.
And some day I'll manage to try your recent macro and check if it makes any difference to disable the rebuildmenu-lines, which I strongly doubt ;-)

Options: ReplyQuote
Re: Need wiki edit help
Posted by: JamesD
Date: August 17, 2011 01:04AM

@ siria

Thanks. I never even saw the blank. I will transfer the code tomorrow.

Options: ReplyQuote
Re: Need wiki edit help
Posted by: JamesD
Date: August 17, 2011 06:25PM

Quote
siria
PS: Noticed that if one of the arguments for "and/or" is not a variable, but some action like "index(...)", then additional brackets () are needed around both arguments left and right, even if the other one is just a variable.

Yes, another good find for you. This becomes complex very quickly. Look at what I had to do to get the number of ()s to be correct.

$_ASring = "hijkl";
##    |-------------------------------------------------------------------------|
##       |----------------------|    |----|      |------------------|   |---|    
##               |------------|                          |--------|     	
while (  ( index($_ASring, "j") ) != ( -1 )  and ( length($_ASring) ) > ( 2 )   ) {
	alert($_ASring, "String is");
	$_ASring = substr($_ASring, 0, length($_ASring) -1);
	}


Options: ReplyQuote
Re: Need wiki edit help
Posted by: siria
Date: August 17, 2011 07:14PM

Quote
JamesD
This becomes complex very quickly. Look at what I had to do to get the number of ()s to be correct.

$_ASring = "hijkl";
##    |-------------------------------------------------------------------------|
##       |----------------------|xxx|----|      |------------------|xxx|---|    
##               |------------|                          |--------|  
while (  ( index($_ASring, "j") ) != ( -1 )  and ( length($_ASring) ) > ( 2 )   ) {
	alert($_ASring, "String is");
	$_ASring = substr($_ASring, 0, length($_ASring) -1);
	}

Whow, nice picturing grinning smiley
But can the red breaks really not be omitted?? I meant, only the packets left and right of "and" need extra brackets, but now they are divided yet another time?

Options: ReplyQuote
Re: Need wiki edit help
Posted by: JamesD
Date: August 17, 2011 08:33PM

Yes, the breaks w/red can be omitted. Now looks like this:

while ( ( index($_ASring, "j")  !=  -1 )  and ( length($_ASring)  >  2 )  ) {


Options: ReplyQuote


K-Meleon forum is powered by Phorum.