comments

what is the purpose of #: (hashtag/pound colon) in bash

情到浓时终转凉″ 提交于 2019-12-11 05:53:57
问题 I was recently looking at the Homebrew source code. Since it's a popular tool, the code is probably relatively clean. I noticed they use a #: comment style (example: update.sh). I haven't seen that anywhere else (and it's hard to search for symbols, so I can't find any mentions of it). Is that an accepted convention? Does it have a special meaning? 回答1: It looks to be some sort of documentation fragment for a manpage: it is written in standard manpage style and documents the script that

Using Notepad++, comments `//` in PHP stops the script

南笙酒味 提交于 2019-12-11 04:56:51
问题 The issue started with this question: Why does this `$_SESSION = $_POST` fail? After some time I found that my problem described in that question is caused by the comment // in PHP (as described in the last update in the question). I suspect my editor Notepad++ to have some kind of influence on this. As an example, if I write: <? echo "test1<br>"; echo "test2<br>"; echo "test3<br>"; // Comment echo "test4<br>"; echo "test5<br>"; ?> <? echo "test6<br>"; echo "test7<br>"; echo "test8<br>"; ?>

My summary information won't show up in Sandcastle using VB ''' syntax

流过昼夜 提交于 2019-12-11 04:48:54
问题 I'm trying to take advantage of Sandcastle to help build out system documentation, but for some odd reason none of my <summary> data shows up in the chm ... has anyone had success w/ the latest build of Sandcastle and VS2008 using VB? 回答1: Have you checked to see that XML document generation is actually turned on (in Build properties) and is creating an XML file in the right place (i.e. bin/Release/)? Also, see this thread on MSDN, which documents the same problem I believe. 回答2: It is a 2

Commenting in activity_main.xml

北慕城南 提交于 2019-12-11 04:21:53
问题 I am new to Android. I understand that commenting in XML works the same as it does in HTML, using the <!-- comment here --> form. I would like to write some comments in my activity_main.xml configuration file for an Android project, but it's giving me errors. It's worth noting that I'm using Eclipse, but for the moment, I'm editing the XML file directly as opposed to graphically because I'd rather force myself to understand the attributes. I am trying to comment in and out conflicting

Identify C++ style comments with asm-mode in Emacs Lisp

余生长醉 提交于 2019-12-11 04:03:44
问题 In Emacs, how do I tweak the lisp file(s) to identify C++ style comments in asm-mode? I have a compiler that deals with asm code but uses C++ style comments. I would like emacs identify C++ style commenting and show chunks of text wrapped in /* , */ as comments. The default comment start characters of asm-mode (?\;) can be ignored. 回答1: Are you using Emacs 21? If I'm reading the version history correctly, // style comments are supported starting with GNU Emacs 22. M-x emacs-version tells you

Javascript Extract Comments RegExp

大兔子大兔子 提交于 2019-12-11 03:56:28
问题 I have a Javascript file like that /** * My Comment Line1 * My Comment Line2 */ var a = 123; /** * My Comment Line3 * My Comment Line4 */ var b = 456; I am using node.js to read the file and want to extract comments in this file. I use this regexp /\/\*\*((?:\r|\n|.)*)\*\// However this extracts /** * My Comment Line1 * My Comment Line2 */ var a = 123; /** * My Comment Line3 * My Comment Line4 */ My program have a loop to extract matched block one by one. So I want a RegExp to extract First

Can comments make any difference during the run-time?

别等时光非礼了梦想. 提交于 2019-12-11 02:49:29
问题 Reading What is the best comment I've encouter this comment, upvoted 201 times: A long time ago, I accidentally fixed a segfault in Java3D by adding a comment. It was 100% reproducible; if I removed the comment, it crashed. As long as the comment was there, it worked fine. I assume it was some bizarre timing issue, but I never did figure out exactly what was happening. Is this possible? If he was fixing a segfault in Java3D, I'm guessing he was writing code in Java or C/C++. I thought that in

// comments in doxygen

会有一股神秘感。 提交于 2019-12-11 02:38:22
问题 I have a c# project that I need to document with doxygen. It picks up the comments autogenerated by visual studio's /// but unfortunately it does not pick up on the normal // comments. Is there a config setting that I am missing? Or is this just not possible? 回答1: /// is referred to as XML Documentation Comments. This is how Doxygen and other documentation-generating software locate areas of the code you want to be used as documentation. To elaborate, if you have comments like // This is

Function to Comment Multiple Lines Vimrc

谁说胖子不能爱 提交于 2019-12-11 01:49:55
问题 So I currently like this solution to commenting multiple lines in vim: Press CTRL-v (to go into Visual Block mode) Select the lines you want to comment Press Shift-i (to go into Insert mode) Type whatever comment characters your language uses Press ESC ESC (pressing the escape key twice makes the results appear faster) But I would like some help mapping these steps into my vimrc file. I currently use the following to comment lines out: vnoremap ;/ <C-v>0I// <ESC> For those who want an

Can i save comment info in my Jar file(generated by Ant)?

試著忘記壹切 提交于 2019-12-11 01:03:26
问题 When I build my project to a Jar file with Ant, I generate javadoc the same time. But when I use this Jar in a new Project, I can't see the Jar's comment in the Eclipse(pressing F2). So I tried to add the javadoc files' location path in 'javadoc Location' of Properties of my new Project,it doesn't work, even if Eclipse tell me the 'Location is likely valid'. When I open it in Browser,the Url is like file:///file:/C:/Users/topxebec/Desktop/doc/index.html , there's two prefix in the url,but in