Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19
  1. #1
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Tasty Code Goodies

    You may have noticed that when you're pasting in some PHP code that some random orange bars or a straight orange bar shows up in your code. That line represents one line 80 characters long. It is considered common good practice in most any language to not have any one line exceed 80 characters. This allows for easy reading in an IDE (no horizontial scrolling) as well as easily printable code (two columns per page).

    A sample of what the bar looks like:
    PHP Code:
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over!
    123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 over
    Hopefully, this means that you'll get in the habit of not going over 80 chars per line. Many IDEs have this feature (Maguma Studio for PHP, my PHP IDE, has it) and I strongly suggest you use it.




    Also, a reminder of the custom vB codes at WDF:

    [minicode]this is some code[/minicode]
    becomes
    [minicode]this is some code[/minicode]

    [user]filburt1[/user]
    becomes
    [user]filburt1[/user]

    [searchw3s]innerHTML[/searchw3s]
    becomes
    [searchw3s]innerHTML[/searchw3s]

    [searchweb]Web Design Forums[/searchweb]
    becomes
    [searchweb]Web Design Forums[/searchweb]

    [searchwdf]Contests[/searchwdf]
    becomes
    [searchwdf]Contests[/searchwdf]

    Enjoy.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    NICE !!!

    I particularly like the search results for the Google one (WDF comes up as #1)

  4. #3
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    By the way, I don't quite understand the purpose of the minicode tags.... care to explain them better?

  5. #4
    Member
    Join Date
    Mar 2003
    Posts
    34
    Member #
    890
    Wow neat search google code

  6. #5
    Senior Member nsr81's Avatar
    Join Date
    Oct 2002
    Posts
    1,132
    Member #
    250
    Liked
    15 times
    Originally posted by transio
    By the way, I don't quite understand the purpose of the minicode tags.... care to explain them better?
    minicode inserts inline code, without breaking the continuity of the text, as opposed to the code tag which sets the code apart from text.

    i.e. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. [minicode]This is some minicode.[/minicode] This is some text. This is some text. This is some text.
    Code:
    This is some code.
    This is some text.
    There and Back Again :Ogre:

  7. #6
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    i like the new things esp. the searches :classic:
    JR

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    I'm wondering whether or not to make this thread a sticky so that people can catch on to all the great new stuff that's here.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  9. #8
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Done
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  10. #9
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    just a quick question i had been pondering over aranoid:

    how do i type the code without it being used? for example so i can explain if somebody needs to know a tag?
    JR

  11. #10
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Either break it by adding a space or break it by adding a [b][/b] in it.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:53 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com