|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
code tag
Can you make the code tag color code automatically rahter than only that code enclosed by <?php ?>?
Shouldn't this: look the same as this: This being a PHP site and all, the <?php ?> tags seem a bit redundent. |
|
#2
|
|||
|
|||
|
RE: code tag
umm..you posted the same code twice??
maybe you mean any php code outside of php tags should still be highlighted? and if so, i spose that could be a good idea..not vital though, people will still understand it if it isnt highlighted.. |
|
#3
|
|||
|
|||
|
RE: code tag
heh..no he posted two different things..I've just been working on his request and have got them looking the same now
|
|
#4
|
||||
|
||||
|
RE: code tag
So now it adds the <?php ?> tags automatically? That's not quite what I was hoping for.
|
|
#5
|
|||
|
|||
|
RE: code tag
i would vote against this way too, but i would vote against the initial request too.
what if code in [code] tags is html, or js, or sql, or xml, or anything else but php. what then? yes, this is primary a php comunity, but there are many other "languages" that go with php (all i mentioned)... so, if u write php code, u can add <?php in the beginning, if not, u don't. maybe we (matt) can even make [highlight=php] tags for php code, and leave [code] tags for other code. i don't know, i just know that i don't like this... |
|
#6
|
|||
|
|||
|
RE: code tag
honcho....yes I am working on removing the open and close tags...
zombie..I am with you on this one...I actually do plan to move all php syntax highlighting over to [highlight=php] tags.... |
|
#7
|
||||
|
||||
|
RE: code tag
zombie, I like your suggestion about adding [highlight=php] tags in addition to the current [highlight=php] tags.
|
|
#8
|
|||
|
|||
|
RE: code tag
OK, I added the php tags...I updated all the messages to change everything that was currently in code tags to be in php tags. This obviously affected regular text as in your message just before this one...
The code tags no longer highlight php code...the new php tags should do it whether you have the open and closing tags or not.... let me know if there are any problems... |
|
#9
|
|||
|
|||
|
RE: code tag
not realy a problem with those tags, but i just want to ask u a thing.
"do u even check once if/how it works when u make some changes?" - this is what my boss asks me very often ;) this "new post" page (or replay page) that we all use to post messages is also changed, to let everyone know that they can use php tags. but table layout is wrong. left column with that hint should be smaller than this one where this <textarea> tag is... try resizing your browser and see what happends... ((btw, i am kidding, he only asked me that one time, and he was kidding ;)) |
|
#10
|
|||
|
|||
|
RE: code tag
Better zombie?
I don't make my browser small...it is maximized at 1024x768 at all times ;) |
|
#11
|
|||
|
|||
|
RE: code tag
it's ok now
i don't make my browser small eather! it is maximised at 1152*864 at moust of the times, but i often keep Favourites or SideBar on, so the main browser area remains a little wider than 800px. i think it is good tip for all webmasters/php developers/html and flash designers to keep their browsers 800px wide. i hate seeing sites that don't work on 800*600 screen, unless there is a good reason... |
![]() |
| Viewing: Codewalkers Forums > Forum Information > Suggestions & Feedback > code tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|