|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Function Linking
PHP functions in messages will now be linked to their manual pages on php.net, thanks to zombie! This is something I started messing with, but found it just wasn't quick enough. Zombie took over and came up with some lightning fast routines to do the linking.
So, if things break - blame him :laugh: |
|
#2
|
|||
|
|||
|
RE: Function Linking
btw matt, while links are visible in the middle of text like mysql_connect() this, in a php code, they are also blue, and not so visible. can you change css class a bit, to make them more visible in php code (make them underlined or smth). see that links are not much visible in [php] tags... |
|
#3
|
||||
|
||||
|
RE: Function Linking
thnx zombie
|
|
#4
|
|||
|
|||
|
RE: Function Linking
Better zombie?
|
|
#5
|
|||
|
|||
|
RE: Function Linking
Cool! If you don't mind me asking, which code did you go with? I know it was discussed for a while in the PHP coding forum...
|
|
#6
|
|||
|
|||
|
RE: Function Linking
Zombie..want to post an explanation of your code?
|
|
#7
|
||||
|
||||
|
RE: Function Linking
there is a bug in it
i posted this in support & suggestions but here it is again foreach() has a link to each and not foreach |
|
#8
|
|||||
|
|||||
|
RE: Function Linking
i implemented str_replace() and strtr() solutions, but i don't know which one matt used.
yes, i know of some small bugs, but i am not going to solve them one by one. when there are around 5 of them, i will solve them all at once, so... post them here. bugs found so far: php Code:
if you see any more bugs, post them here pls... |
|
#9
|
|||||
|
|||||
|
RE: Function Linking
are links red now just for me, or for everyone?
i like them blue better. underlined dark blue would be even better... i forgot to explain the code itself. it is very simple. it is only one line of code, and a zilion lines of data ;) and data array looks like: php Code:
the second part is for php code that is run trough php color coding, and that function adds some html, so i can't use "function_name(" for search pattern, but have to use "function_name" instead. and before all this, i did some rearanging in function list. that solved sleep() before usleep() and similar functions... basicly, every function that is a part of another function (max(), print(), time(), trim(), etc...) had to be moved to the end of a array... again, post errors here... |
|
#10
|
|||
|
|||
|
RE: Function Linking
just remembered one more..
if you don't place opening bracket just after the function name, but add a space beetween, it will not link. like this print () i think that only second form should be linked, and function names in text should be only linked if there is a bracket imidietly after the function name. but i might correct this in the [php] tags... |
|
#11
|
|||
|
|||
|
RE: Function Linking
zombie,
Uou might consider also looking for a space before the function name. This will elminate the foreach() problem as well as a few others I've seen, like the word background followed by () changing into round(). |
|
#12
|
|||
|
|||
|
RE: Function Linking
can't do that.
$a=unserialize(urldecode(gzip_decompress($str))) not one space, but three functions... foreach() will be solved in next version, but problem with background() remains... |
![]() |
| Viewing: Codewalkers Forums > Forum Information > Forum Announcements > Function Linking |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|