Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 27th, 2002, 11:02 AM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
code tag

Can you make the code tag color code automatically rahter than only that code enclosed by <?php ?>?

Shouldn't this:
php Code:
Original - php Code
  1. $a = strlen("hello") + 1;


look the same as this:
php Code:
Original - php Code
  1. <?php
  2. $a = strlen("hello") + 1;
  3. ?>


This being a PHP site and all, the <?php ?> tags seem a bit redundent.

Reply With Quote
  #2  
Old September 28th, 2002, 08:50 AM
D1NGO D1NGO is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221 D1NGO User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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..

Reply With Quote
  #3  
Old September 28th, 2002, 02:33 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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

Reply With Quote
  #4  
Old September 28th, 2002, 08:12 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: code tag

So now it adds the <?php ?> tags automatically? That's not quite what I was hoping for.

Reply With Quote
  #5  
Old September 28th, 2002, 08:28 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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...

Reply With Quote
  #6  
Old September 28th, 2002, 11:23 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 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....

Reply With Quote
  #7  
Old September 29th, 2002, 08:01 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: code tag

zombie, I like your suggestion about adding [highlight=php] tags in addition to the current [highlight=php] tags.

Reply With Quote
  #8  
Old October 2nd, 2002, 12:19 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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...

Reply With Quote
  #9  
Old October 2nd, 2002, 10:43 PM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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 ;))

Reply With Quote
  #10  
Old October 3rd, 2002, 12:44 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: code tag

Better zombie?

I don't make my browser small...it is maximized at 1024x768 at all times ;)

Reply With Quote
  #11  
Old October 4th, 2002, 01:30 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
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...

Reply With Quote
Reply

Viewing: Codewalkers ForumsForum InformationSuggestions & Feedback > code tag


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway