comments

comments compiled into .exe in .net?

I know you can use a .net reflector to view code created with .net but if i put something in the comments for my own personal reminder is that compiled in the exe as well. I don't intend to release the source code for my application and i know the 100% safe bet is to just remove everything i don't want out but i was just wondering if so...

How can I compare 2 files and ignore any changes in comments ?

I'm using C# and VB.NET. I often (every days...) add comments to existing source files. When I check-in these files, I would like to have my merge tool to ignore any changes made to comments - I just want to be sure that I did not change the code. I use WinMerge and Team Foundation Control Server (yes, no chance : Subversion was not a...

Javadoc like documentation for C#'s xml comments

I'm looking for something to turn my C# xml comments into documentation. I don't like chm's, nor msdn's look and feel. I love using the javadocs. They're easy to navigate, and everything is accessible. Is there a tool I can use to convert the comments in my code to a javadoc like look and feel. Is there something that does this? I've tr...

Python regex question: stripping multi-line comments but maintaining a line break

Hello, I'm parsing a source code file, and I want to remove all line comments (i.e. starting with "//") and multi-line comments (i.e. /..../). However, if the multi-line comment has at least one line-break in it (\n), I want the output to have exactly one line break instead. For example, the code: qwe /* 123 456 789 */ asd should ...

Database Structure for a website commenting system

I'm working on a website currently that needs a commenting system. As this website is brand new, and the database structure has yet to be set in stone, I would like some suggestions on how to best handle a commenting system such as this: Comments must be able to be placed on anything. Including items in future tables. Comments must b...

Sharepoint Blog: enable/disable comments regarding field value of Posts

Hello! I need to enable/disable post comments regarding the value of a new field in Post list. I don't see how to do this... Any ideas? Why is there an error when converts to XSLT? Is possible to get the querystring to do this? Thanks a lot!!! Xavier ...

Including */ in a C-style block comment

Is there any way to include */ in a C-style block comment? Changing the block comment to a series of line comments (//) is not an option in this case. Here's an example of the sort of comment causing a problem: /** * perl -pe 's/(?<=.{6}).*//g' : Limit to PID */ ...

How can I strip multiline C comments from a file using Perl?

Can anyone get me with the regular expression to strip multiline comments and single line comments in a file? eg: " WHOLE "/*...*/" HAS TO BE STRIPED OFF....." 1. /* comment */ 2. /* comment1 */ code /* comment2 */ #both /*comment1*/ and /*comment2*/ #has to stripe...

How can I move C comments from the start of a line to the end using Perl?

Hi all, How can I check for the next line while running in a current loop? Also, how can I move C comments to end of the line for a table? I have a file like this: array_table= { /* comment 1*/ (unsigned int a); /* comment 2*/ (unsigned int b); /* comment 3*/ (unsigned int c); /* comment 4*/ (unsigned int d); } My...

Where to put documenting comments?

Very short question: when documenting delphi code (for the purpose of enabling an external tool to generate an HTML documentation (Doc-o-matic in the concrete example)), do you put the documenting comments in the interface or in the implementation section? What I like about the second approach is that the interface part a class stays cl...

Drupal Search Module Linking to Comments Directly

On my drupal search results page link directly to the comments of the post, in addition to just the post itself. Looking at the search.module file the relevant code seems to be. $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>'; The issue is I can't figure out where on ...

hide/unhide all comments in xcode

Is there a way to hide/unhide all comments in xcode source files? This would be very helpful when working with code that has way too many comments added. ...

Best Practice for comments in Java source files?

This doesn't have to be Java, but it's what I'm dealing with. Also, not so much concerned with the methods and details of those, I'm wondering about the overall class file. What are some of the things I really need to have in my comments for a given class file? At my corporation, the only things I really can come up with: Copyright/L...

Why are comments in code colored differently?

Why are comments different colors in different programs? Is it just aesthetic or is there an actual reason? ...

Possible to have Visual Studio TODO comments in aspx/ascx files appear in task list?

We develop asp.net webforms using visual studio 2008. For multilingual support, we translate all our text. However, when designing, we usually just enter the english text and come back to translation later (it interrupts flow of work otherwise). I've added a "ToTranslate" tag in the options. Adding //ToTranslate: something in C# co...

How to make comment reply query in MYSQL?

I am having comment reply (only till one level) functionality. All comments can have as many as replies but no replies can have their further replies. So my database table structure is like below Id ParentId Comment 1 0 this is come sample comment text 2 0 this is come sample comment text 3 0 ...

Php comments script

Anyone know where I can find a simple comments script in php/mysql, i just want a system that has the basic font enhancements, url links, image and reply functions. Thanks. ...

Nested comments in Visual C++?

Is it possible to enable nested comments (/* /* */ */) in Visual C++? I can't seem to find the switch, if there is one. ...

What should accompany the code in a job application?

Along with my resume, i am posting a program which is a solution to a coding challenge on the company's website. What should accompany the code so that it really impresses the reviewer? Comments Solution explanation Assumptions Test module Anything else i should add, or is it already overkill? Thanks. ...

Can HTML comments appear before the DOCTYPE declaration?

I would like to place a comment (<!-- this --> style) at the very top of my HTML, preceding the DOCTYPE declaration. Does the standard allow this? Is it supported by the major browsers? Are there any pitfalls in doing this? ...