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.

Results 1 to 5 of 5
  1. #1
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    I've been browsing some threads and noticing people copying and pasting huge swaths of code into posts. Please, when posting code, do one of two things:

    1. Surround the code with the appropriate formatting tag (see below)
    2. Attach your code as a file to your post

    You can use the following tags to format your code:
    • [html]: Formats and colorizes your code as HTML
    • [php]: Formats and colorizes your code as PHP
    • [minicode]: A generic tag for a tiny snippet of code (one line or so)
    • [code]: For all other code such as Javascript, ASP, etc.

    Given some of these tags color your code, this alone makes it worthwhile. But better still, very large blocks of code will not make your post and the entire page long, but will instead be small scrollable elements in your post.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    See how nicely it can format HTML?
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" lang="en">
    <head>
    	<!-- no cache headers -->
    	<meta http-equiv="Pragma" content="no-cache" />
    	<meta http-equiv="Expires" content="-1" />
    	<meta http-equiv="Cache-Control" content="no-cache" />
    	<!-- end no cache headers -->
    	<title>Web Design Forums.net - A Forum for Webmasters</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    
    <meta name="keywords" content="forum,bbs,discussion,bulletin board,web design" />
    <meta name="description" content="A discussion board and community for web design topics." />
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    Quick question when i tried to insert the [ and ] tags to make refrence to an element it cam out as the actual tag eg
    [minicode]hmmm this is actually in mini code[/minicode]

    also a not smiles still work within code blocks so if you try:
    anything that includes : p you get eg:
    [minicode]javascriptost()[/minicode]
    i realize you can capitalize the p but if you are useing lower case then it won't work
    Thee Pyro Wolf

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    The only solution is to disable smilies. I think vB 3.5 is smarter (WDF v5 will use vB 3.5).
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  6. #5
    Senior Member
    Join Date
    Feb 2005
    Location
    Canada
    Posts
    435
    Member #
    8983
    Thanks for the response i figured that may be the case
    Thee Pyro Wolf


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:33 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com