|
How can I automatically replace all C style comments (/* comment */) by C++ style comments (// comment)? This has to be done automatically in several files. Any solution is ok, as long as it works.
Started by compie on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Emacs has a comment details from the comments from the OP
The fundamental reason of preferring C++-style comment is that you can comment out....
Do the trick quicker in practice, unless there's a whole load of comments.
|
|
I need to convert single line comments (//...) to block comments (/*...*/) . I have nearly accomplished this in the following code; however, I need the function to skip any single line comment is already in a block comment. Currently it matches any single...
Started by roydukkey on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Convert Single Line Comment to Block Comments function sinlgeLineComments( &$output ) { $output = preg]*?\*/) # group 2: matches multi-line comment blocks | (//[^\r\n]*+) # group 3: matches single line comments @x, " //....
|
|
I have a Drupal site that currently displays comments in threaded, reverse chronological order. I am trying to change it to work like Reddit/Hacker News, where the threads and comments within each thread are instead ordered by their current score, based...
Started by bflora on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Would be to get the comments as threaded, somewhere I'm sure they will be converter to an array I change the end of the query so it orders the comments by score while still keeping them within, c.status, COALESCE (r.energy,0) as energy ....
|
Ask your Facebook Friends
|
Hello,
I want to parse a file and I want to use php and regex to strip:
blank or empty lines single line comments multi line comments basically I want to remove any line containing
/* text */
or multi line comments
/*** some text /
If possible, another...
Started by Ahmad Fouad on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, it would turn this:
print "/* a comment.
Something that matches these conditions.
|
|
In our company we write excessive Xml comments. A typical method is has to be documented like this:
/// <summary> /// Determines whether this <see cref="IScheduler"/> contains a specific <see cref="ISchedule"/>. /// </summary> ...
Started by TomTom on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Some languages....
There is a particular reason for these sorts of comments to turn comments on and off.
It bloats the code (though comments can be collapsed), but if you actually ship documentation to others, it's pretty darned helpful.
|
|
Would you dance with her? I want comments. COMMENTS!? http://www.youtube.com/watch?v=MvyxEBNHk…
And you my ladies?! Would you dance like her?
Started by Alpha ® †† on
, 16 posts
by 16 people.
Answer Snippets (Read the full thread at yahoo):
I love this movie haha and this scene is so hot
my god you could... .
Who wouldn't? She is one hell of
a sexy lady.
Um I might spray her silly with my giant super soaker
if she ever tried to serve me a drink like that but if she
asked, I would dance with her .
|
|
Hi there,
our agents are praying me for this little feature.
When they select Personal CallBack as Disposition, they write down a lot (2-3 rows) of comments.
Then happens this: when they recall that lead, from that time on, they lost the comment. It would...
Started by DarknessBBB on
, 17 posts
by 6 people.
Answer Snippets (Read the full thread at net):
(calling it audited comments comments as they cannot....
Also: we are getting near to a QC release (poundteam, not the vicidial group) that includes archived (viewable) previous comments as an option on any campaign.
comments.
|
|
Please use this thread for posting comments only, any videos will be deleted
Started by stan on
, 12 posts
by 7 people.
Answer Snippets (Read the full thread at fccuk):
I have done a full write-....
You might want to call Joe at FCSS Hey Patch
Many thanks. .
I know that Joe's paint guy can make these up .
You now need a bumper without the old cut out for the original pipe .
Unique and sounds perfect.
I like that a lot Nazo.
|
|
It seems that YouTube has made some changes recently. Since that time, all of my channel comments have disappeared. I can see my video comments in the front end and back end but every single channel comment is missing.
Started by YoganandaSRF on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at google):
If YoganandaSRF is your YT channel name then I can see... .
There were about 60 and they are completely missing.
I did that and I cann see all of my video comments but I still can't find my channel comments.
And choose "comments only".
|
|
I've noticed, using visual studio 2003, that I can "comment out" my comments to make them no longer be comments. This one needs an example:
If I have:
/* int commented_out = 0; */
I can comment out the /* and */ with // and code within the /* and */ is...
Started by Jeffrey Martinez on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I often use what....
The C++ standard says that a /* is the start of a comment block only if it itself is not commented out.
Yep, this is perfectly normal behavior.
= 0; #endif
Then I don't have to worry about comment markers at all.
|