comments

Lisp commenting convention

為{幸葍}努か 提交于 2019-12-17 17:33:23
问题 What is the Lisp convention about how many semicolons to use for different kinds of comments (and what the level of indentation for various numbers of semicolons should be)? Also, is there any convention about when to use semicolon comments and when to use #|multiline comments|# (assuming they exist and exist on multiple implementations)? 回答1: In Common Lisp: ;;;; At the top of source files ;;; Comments at the beginning of the line (defun test (a &optional b) ;; Commends indented along with

How do I add comments to package.json for npm install?

跟風遠走 提交于 2019-12-17 17:20:02
问题 I've got a simple package.json file and I want to add a comment. Is there a way to do this, or are there any hacks to make this work? { "name": "My Project", "version": "0.0.1", "private": true, "dependencies": { "express": "3.x", "mongoose": "3.x" }, "devDependencies" : { "should": "*" /* "mocha": "*" not needed as should be globally installed */ } } The example comment above doesn't work as npm breaks. I've also tried // style comments. 回答1: This has recently been discussed in the node.js

Do double forward slashes direct IE to use specific css?

 ̄綄美尐妖づ 提交于 2019-12-17 17:02:33
问题 I have just found something very weird while developing a website. While trying to get a div element to display across the top of the screen, I noticed that I wasn't achieving a desired result in any browser except for old versions of IE. In order to test some different code, instead of deleting the faulty line, I used '//' to comment it out (I'm not really even sure if that works in css) but what happened was, the compatible browsers used the uncommented code, while IE used the code marked

XML multiline comments in C# - what am I doing wrong?

时间秒杀一切 提交于 2019-12-17 16:32:29
问题 According to this article, it's possible to get multiline XML comments -- instead of using /// , use /** */ . This is my interpretation of what multiline comments are, and what I want to have happen: /** * <summary> * this comment is on line 1 in the tooltip * this comment is on line 2 in the tooltip * </summary> */ However, when I use this form, the tooltip that pops up when I hover over my class name in my code is single-line, i.e. it looks exactly as if I had written my comment like this:

HTML Comments inside Opening Tag of the Element

自作多情 提交于 2019-12-17 16:25:10
问题 When I try this <option disabled = "disabled" <!-- Used to disable any particular option --> selected = "selected" <!-- Used to pre-select any particular option --> label = "string" <!-- Used to provide a short version of the content in the option --> value = "value"> <!-- The actual value that will be send to the server. If omitted the content between the option opening and closing tags will be send. --> Option 1 </option> I am trying to comment the attributes and values inside the openning

Eclipse-like Line Commenting in Emacs

南笙酒味 提交于 2019-12-17 16:10:05
问题 In Eclipse, highlighting multiple rows and pressing Ctrl+/ comments each of the lines of the selection. Emacs has a function comment-or-uncomment-region that is close what I want, but behaves differently if the region only partially covers the lines I'm trying to comment. Is there any way I make a function similar to comment-or-uncomment-region , but have it comment each of the lines of the region regardless of how the region is selected? In other words, I want the function to act as though

Where to document functions in C or C++? [closed]

為{幸葍}努か 提交于 2019-12-17 15:38:27
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I have a C program with multiple files, so I have, for example, stuff.c which implements a few functions, and stuff.h with the function prototypes. How should I go about documenting the functions in comments? Should I have all the docs in the header file, all the docs in the .c

Can a CSV file have a comment?

岁酱吖の 提交于 2019-12-17 15:35:15
问题 Is there any official way to allow a CSV formatted file to allow comments, either on its own line OR at the end of a line? I tried checking wikipedia on this and also RFC 4180 but both do not mention anything which leads me to believe that it's not part of the file format so it's bad luck to me and I should then use a seperate ReadMe.txt file thingy to explain the file. Lastly, i know it's easy for me to add my own comments in, but i was hoping that something like Excel could just import it

How to retrieve comments from within an XML Document in PHP

对着背影说爱祢 提交于 2019-12-17 15:01:12
问题 I want to extract all comments below a specific node within an XML document, using PHP. I have tried both the SimpleXML and DOMDocument methods, but I keep getting blank outputs. Is there a way to retrieve comments from within a document without having to resort to Regex? 回答1: SimpleXML cannot handle comments, but the DOM extension can. Here's how you can extract all the comments. You just have to adapt the XPath expression to target the node you want. $doc = new DOMDocument; $doc->loadXML( '

Add comments to PDF files automagically with regular expressions

妖精的绣舞 提交于 2019-12-17 10:37:41
问题 I've been grading academic papers for a couple of years now and I've started to see numerous patterns in spelling and grammer mistakes. Also, I've noticed that less experienced academics tend to use certain constructs that immediately raise "smells" to more experienced researchers. I would like to automagically recognize and annotate these in PDF files. Is anyone aware of a script that I could use to automagically annotate and comment PDF files? Perhaps it's dead simple, but I feel like I'm