If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Suggestions & Feedback > [sql] [/sql]

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-10-07, 08:38
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,002
[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
Twitter | Blog
Reply With Quote
  #2 (permalink)  
Old 08-10-07, 08:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,084
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
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-10-07, 08:52
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,002
Touch&#233;...
Fancy linking me to somewhere that has done this already?
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 08-10-07, 09:46
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,084
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
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 08-10-07, 09:54
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,002
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
Twitter | Blog
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On