Results 1 to 5 of 5

Thread: [sql] [/sql]

  1. #1
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434

    [sql] [/sql]

    I was wondering if we could have an extra [CODE] BB tag for SQL. the SQL BB tags would colour your code all pretty, kinda like the current PHP ones do
    PHP Code:
    <html>
    <body><?php
    $d
    =date("D");
    if (
    $d=="Fri")
      echo 
    "Have a nice weekend!"
    else
      echo 
    "Have a nice day!"
    ?></body>
    </html>
    Not only retaining formatting, but highlighting keywords.

    What does anyone else think?
    George
    Home | Blog

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    highlighting whose keywords? mysql's? sql server's? god help us access's?

    they've actually done this on two of the other database discussion sites i'm on, and the results look like pants

    i'll be using [code][/code] tags, thanks
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Touch&#233;...
    Fancy linking me to somewhere that has done this already?
    George
    Home | Blog

  4. #4
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    couldn't find any (they're there, but there aren't many of them), so i had to wait until i got an opportunity to use the highlighting myself --

    http://www.sitepoint.com/forums/showthread.php?t=496582

    http://forums.devshed.com/mysql-help...mn-465789.html
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  5. #5
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    I like the one on sitepoint!
    No need for line numbers IMO (devshed).

    I'd use it over CODE for my SQL, but if I'm the only one, then there's no real point!
    George
    Home | Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •