Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / March 2006

Tip: Looking for answers? Try searching our database.

File types and comments in VSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arnie - 27 Mar 2006 23:40 GMT
We have a 'custom' file type and we'd like to use the pound sign
(#) to indicate single line comments in the file.  I vaguely
recall that a comment indicator could be associated with a file
type in VSS.  I've looked all through the help and can't find any
info on it.  Am I crazy?  Gee, maybe it was PVCS years ago.

Thanks,
- Arnie
Alin Constantin [MSFT] - 28 Mar 2006 10:54 GMT
Hi Arnie,

VSS does not care about # characters in the file's content, so you can
safely use # for comments.
The onnly character I know might matter in the file's content is $, which
can be used for keyword expansion, if the database is configured to allow
this feature http://blogs.msdn.com/korbyp/archive/2003/10/13/54209.aspx
Signature

Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.

> We have a 'custom' file type and we'd like to use the pound sign (#) to
> indicate single line comments in the file.  I vaguely recall that a
[quoted text clipped - 4 lines]
> Thanks,
> - Arnie
Zane Jarvis - 29 Mar 2006 05:49 GMT
Hi Arnie,

in the ss.ini file place a container as follows

[Keyword Comments]
*.c = "// "
*.cpp = "// "
*.h = "// "
*.inl = "// "
*.asm = "; "
makefile = "# "
<All others> = "* "

Cheers,
Zane

> We have a 'custom' file type and we'd like to use the pound sign (#) to
> indicate single line comments in the file.  I vaguely recall that a
[quoted text clipped - 4 lines]
> Thanks,
> - Arnie
Arnie - 29 Mar 2006 17:39 GMT
> Hi Arnie,
>
[quoted text clipped - 11 lines]
> Cheers,
> Zane

Thanks.  Yes, I did that but it still doesn't seem to work.  I
realize the comments are just so that VSS can add history or
whatever to the file as comments.  However, at the moment, the
keywords aren't even being expanded.  I'm still looking into it.

BTW, I tried placing the comment definitions in both the
sourcesafe ini file and into ss.ini in my user profile.  But as I
said above, without keywork expansion, it doesn't matter very
much.

- Arnie

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.