Solved

Different color for specific comments?

Posted on 2012-03-19
4
163 Views
Last Modified: 2012-03-20
In SQL Server 2008, is there a way to apply different colored comments depending on what you start the comment with?

For example:

--DEBUG
or
/*DEBUG

can be red while any other comments are the default green.
0
Comment
Question by:brettr
  • 2
4 Comments
 
LVL 29

Assisted Solution

by:QPR
QPR earned 300 total points
ID: 37739979
Not that I've ever seen or heard of sorry
I often use
-- ******************************
If I need something to stand out more than other comments
0
 
LVL 77

Accepted Solution

by:
arnold earned 200 total points
ID: 37740204
Have a look at: http://msdn.microsoft.com/en-us/library/ms173754.aspx
Have not tried the distinctions you are looking for such that I can not say whether what you want can be achieved.
0
 
LVL 29

Assisted Solution

by:QPR
QPR earned 300 total points
ID: 37740288
And from that link....
"The settings for text color and font type are global for all text element types, such as comments, strings, and so on."

So I'm not sure how you could have multi coloured comments
0
 

Author Closing Comment

by:brettr
ID: 37742951
Thanks for the confirmations.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Managing Columnstore Indexes 2 38
SSRS 2013 - Creating a summarized report 19 47
Separate 2 comma delimited columns into separate rows 2 40
PROPERCASE SCRIPT IN SQL 3 16
Audit has been really one of the more interesting, most useful, yet difficult to maintain topics in the history of SQL Server. In earlier versions of SQL people had very few options for auditing in SQL Server. It typically meant using SQL Trace …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question