comment

Is there a way to comment out markup in an .ASPX page?

Is there a way to comment out markup in an .ASPX page so that it isnt delivered to the client? I have tried the standard comments but this just gets delivered as a comment and doesn't prevent the control from rendering. Any suggestions would help ...

How to reformat multi-line comments in Eclipse PDT?

In Eclipse PDT, Ctrl-Shift-F reformats code. However, it doesn't modify comments at all. Is there some way to reformat ragged multi-line comments to 80 characters per line (or whatever)? i.e. convert // We took a breezy excursion and // gathered Jonquils from the river slopes. Sweet Marjoram grew // in luxuriant // profusion by t...

What is the best comment in source code you have ever encountered?

What is the best comment in source code you have ever encountered? ...

Ant replace multiple lines of text

I have an xml file where I need to comment out a whole piece of text with Ant. There's this ant task <replace file="${src.dir}/Version.as" token="@revisionPrana" value="${revision}"/> that I use to replace words, but in my case I need to replace a whole block like this: <value> <object class="edumatic.backoffice.view...

Boundary for comment box

In my java application, I need to create a comment box for the users to add comments. Moreover, I need to provide the user with the provision for resizing and dragging the comment box. For this, I need to show a boundary around the comment box as in the case of comment box in Microsoft Excel which I have shown below: I dont need the c...

Setting the comment of a column to that of another column in Postgresql

Suppose I create a table in Postgresql with a comment on a column: create table t1 ( c1 varchar(10) ); comment on column t1.c1 is 'foo'; Some time later, I decide to add another column: alter table t1 add column c2 varchar(20); I want to look up the comment contents of the first column, and associate with the new column: select...

C# comments on closing {}

I've been working a little with DevExpress CodeRush and Refactor! Pro this week, and I picked up a commentor plug-in that will automatically generate comments as you type code. I don't want to go into how good a job it does of picking out basic meaning (pretty good, actually) but it's default implementation does raise a question. By de...

Comment Inheritance for C# (actually any language)

Hi All, Suppose I have this interface public interface IFoo { ///<summary> /// Foo method ///</summary> void Foo(); ///<summary> /// Bar method ///</summary> void Bar(); ///<summary> /// Situation normal ///</summary> void Snafu(); } And this class public class Foo : IFoo { publi...

How can I get CSS comments with javascript?

I am wondering how I can read CSS comments out of a linked stylesheet. I have this sample CSS loaded via: <link rel="stylesheet" type="text/css" media="all" href="test.css" />   #test1{ border:1px solid #000; } #test2{ border:1px solid #000; } #test3{/* sample comment text I'm trying to read */} I'm testing this in FF3. The follow...

How do I print a single comment in drupal?

I want to print a individual comment in drupal based on it's comment ID. How can I do this? Google and other sources have yielded me nothing. Thank you. ...

Get all Comment ID's within a Drupal node

I have a node in Drupal with a few comments. Is there an easyish way to get the CID of every comment within the node? Also, is there a way to sort them by various parameters, chronology, karma of the comment etc. Thank you. ...

.net Comment System

Hi, I have my web site with a blog (created in blogengine), but i need to integrate a comment system to the site away from the blog. for example i have different modules to manage news and events and i want visitors to leave their comments for the modules (for difreent news and events). Is there any system (.net 2.0) to do this or i ne...

What information to put in comments at the top of a sourcecode file?

What information do you consider worth to put in the comment at the beginning of a sourcecode file? All I could think about was the name of the author and perhaps the date the file was created (although I'm not to sure if there is any useful value to this information). [EDIT] To clarify, I don't mean comments before a class, but at the...

How do I get the comments under a status update using the facebook API?

Hi, I have a user that has authenticated with facebook connect and given my app access to publish and read from his stream. I'm trying to get the comments from a specific status update using fql (see my query below), and I keep getting an error code of 1 ("An unknown error occurred"). However, when I try to get statuses, it works perf...

How can i fix js toolkit comment box close by default?

how can i fix js tool kit comment box close by default? i am using this code. Please guide me.. Thanking you !!!!!!!!!!!!!!! I am watting for your positive response. <html> <head></head> <body> <div class="js-kit-comments" path="BE1"></div> <div class="js-kit-comments" path="BE2"></div> <div class="js-kit-comments" path...

Old Code in comments

How long should you keep old code commented out in your code base. The contractors continue to keep old code in code base by turning it into comments. This is really frustrating and I want them to just remove the old code instead of commenting it out. Is there a valid reason to keep old code in the code base as comments? Update: Versi...

Is [---] a comment in .gitconfig?

This question is based on this thread. Is [---] a comment in Git such that I can use only % tool=opendiff % once in my .gitconfig? ...

off-the-shelf control for text entry/commenting in asp classic and asp.net

I've got an application that allows multiple teachers to comment on a single student's writing and would like a rich web control that allows those comments to work like Word. That is, I'd like for teachers to be able to enter comments on particular passages and have those comments show, with the teacher name, when the student reads the e...

Designing a comment system using ASP.NET/C#

I'm coding a comment system for an ASP.NET application written in C#. Ideally, I want something similar to what we have on Stack Overflow. Is there an existing library that would allow me to parse specific part of HTML/BBCode (to support only Basic HTML)? Or is it simply better to write one from scratch, including the Javascript, etc.. ?...

How can I reference a constructor from C# XML comment?

Dear ladies and sirs. Is it possible to reference a constructor from a C# XML comment without resorting to the explicit prefixes (like M: or T:)? For instance, the following yields compilation warnings, because the compiler does not like ".ctor". Trying "PublishDynamicComponentAttribute.#ctor" is no good, "PublishDynamicComponentAttribu...