Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsForum InformationSuggestions & Feedback
View Poll Results: Devshed should provide for named code blocks in the format
I agree 12 100.00%
I disagree 0 0%
Voters: 12. You may not vote on this poll


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 Dev Shed Forums Sponsor:
  #1  
Old July 24th, 2005, 08:56 PM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,171 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 37 sec
Reputation Power: 110
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
Named Code Blocks

posted this originally in the Mod's forums, but I can't move it, so I'm posting it again here for suggestion (sorry fellow mods for the duplicate).

maybe this is overkill, but would it be possible to modify the code tags to accept a quoted parameter indicating the name of the code block - in cases where people may want to post more than one block of code? For example, if I wanted to have my module/class name to make it easily recognizable.

__________________
Fisherman

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein

Reply With Quote
  #2  
Old July 24th, 2005, 09:23 PM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,343 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 6 h 19 m 10 sec
Reputation Power: 787
Seconded with the addition of adding the same to the PHP tags. This would also be very helpful for posting code blocks of different, related files/scripts:

PHP Code:
foo.tpl.php
... 

PHP Code:
bar.php
include('foo.tpl.php'); 
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old July 24th, 2005, 09:29 PM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Jul 2003
Location: I used to live at home, now I stay at the house
Posts: 9,901 ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 17 h 11 m 20 sec
Reputation Power: 836
Facebook
Thirded.
__________________
Support requests via PM will be ignored!
Sites: Route of Queue | Sinthetic - Alternative UK Hiphop
Read These: The General Rules Thread | The General FAQ Thread | NEW USERS - How to post a question

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #4  
Old July 24th, 2005, 10:56 PM
Markisdee's Avatar
Markisdee Markisdee is offline
****ing running
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Dec 2003
Location: Not typing in a location. Damn.
Posts: 2,021 Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level)Markisdee User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 1 h 32 m 9 sec
Reputation Power: 218
Send a message via AIM to Markisdee
Fourthed.
__________________
Free Willy and the Whalers

Quote:
Originally Posted by Ganoosh
another thing you can do it set the player size to heigth="1" width="1" and use it as a period

Reply With Quote
  #5  
Old July 25th, 2005, 12:52 AM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Psycho Canadian
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Jan 2001
Location: Canada
Posts: 4,785 Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Viper_SB User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 4 Weeks 18 h 50 m 40 sec
Reputation Power: 437
add a poll to this thread
__________________
Miscellaneous Software
Viper_SB
Developershed E-Support


Anyone else play chess?
Challenge me

Reply With Quote
  #6  
Old July 25th, 2005, 08:05 AM
cybersaga's Avatar
cybersaga cybersaga is offline
I have a red lunch bag
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jan 2005
Location: The armpit of Niagara
Posts: 3,125 cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level)cybersaga User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 4 h 9 m 28 sec
Reputation Power: 333
Fifthded.
__________________
Web Design Tips - Posting and You

If I've been helpful, and/or you're really nice, consider buying something from my Amazon.com wishlist.
  • There is no room for pride when trying to be the best at what you do.
  • Friends don't let friends use bad code.
The club is dead.

Reply With Quote
  #7  
Old July 25th, 2005, 08:11 AM
Jcaputo's Avatar
Jcaputo Jcaputo is offline
Kiss My Converse!
Developer Shed Admin.
 
Join Date: May 2003
Location: Davie, Florida
Posts: 1,517 Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level)Jcaputo User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 16 h 57 m 21 sec
Reputation Power: 10
Ok we will get this on the to do list.
Comments on this post
codergeek42 agrees: YAY! Thanks.

Reply With Quote
  #8  
Old July 25th, 2005, 10:08 AM
Fisherman's Avatar
Fisherman Fisherman is offline
Inherits Programmer.Slacker
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Location: Between my Id and your Ego
Posts: 2,171 Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level)Fisherman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 9 h 1 m 37 sec
Reputation Power: 110
Send a message via ICQ to Fisherman Send a message via AIM to Fisherman
Whoohooo!

Reply With Quote
  #9  
Old July 25th, 2005, 10:49 AM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 396 thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)thaminda User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 19 h 45 m 3 sec
Reputation Power: 415
Thumbs up Name your CODE blocks

We create a new hack to name CODE blocks.

Code block without name
Code:
$tomorrow  = mktime(0, 0, 0, date("m")  , date("d")+1, date("Y"));
$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"),  date("Y"));
$nextyear  = mktime(0, 0, 0, date("m"),  date("d"),  date("Y")+1);



Code block with name
Code:
Date formatting
$today = date("F j, Y, g:i a");                // March 10, 2001, 5:16 pm
$today = date("m.d.y");                        // 03.10.01
$today = date("j, n, Y");                      // 10, 3, 2001
$today = date("Ymd");                          // 20010310
$today = date('h-i-s, j-m-y, it is w Day z ');  // 05-16-17, 10-03-01, 1631 1618 6 Fripm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.');  // It is the 10th day.
$today = date("D M j G:i:s T Y");              // Sat Mar 10 15:16:08 MST 2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h');    // 17:03:17 m is month
$today = date("H:i:s");                        // 17:16:17

Reply With Quote
  #10  
Old July 25th, 2005, 10:53 AM
codergeek42's Avatar
codergeek42 codergeek42 is offline
少しな日本語とスペイン語と英語を話します。
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Jul 2003
Location: Anaheim, CA (USA)
Posts: 6,420 codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 2nd Grade (Above 100000 Reputation Level)  Folding Points: 35702 Folding Title: Starter FolderFolding Points: 35702 Folding Title: Starter Folder
Time spent in forums: 1 Month 1 Week 6 Days 5 h 45 m 36 sec
Reputation Power: 1092
Send a message via ICQ to codergeek42 Send a message via AIM to codergeek42 Send a message via Yahoo to codergeek42 Send a message via Google Talk to codergeek42
Thanks!
Code:
Testing
printf("Hello, World!");
Cool....
__________________
~~ Peter ~~
( My Blog: It's exactly like normal nerdiness, but completely different. ) :: ( Supporter of the EFF & FSF ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key )

Reply With Quote
  #11  
Old July 25th, 2005, 11:21 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Jul 2003
Location: I used to live at home, now I stay at the house
Posts: 9,901 ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 17 h 11 m 20 sec
Reputation Power: 836
Facebook
Code:
Testing
Sweet! :)

PHP Code:
Testing.php
 Just as sweet! :( 


<edit> Cheers, Thaminda!

Last edited by ChiefWigs1982 : July 25th, 2005 at 03:47 PM.

Reply With Quote