comments

double hyphen in script makes firefox render strangely

随声附和 提交于 2019-12-02 07:11:42
<!-- <script type="text/javascript">/*<![CDATA[*/ c-- ;//]]></script> --> When I have the above line in the <head> section of a plain html page, Firefox 3.5.5 renders the trailing --> as text. If I change c-- to c- it doesn't. Any ideas what's going on here? I getting an artifact on my pages with this due to a very large script that's been crunched. I can change the statement to c-=1 and avoid the problem for now but.... I'd like to know what bit/byte is biting my a$$. This is due to Firefox implementing SGML (on which HTML was based) comments strictly. This will only occur when the document

How to prevent a Java project from building when TODO present

◇◆丶佛笑我妖孽 提交于 2019-12-02 06:42:34
问题 Recently code containing a debugging override was release to production. The code was clearly marked // TODO - Remove before releasing to production But we have nothing integrated into Maven that would prevent the project from building. I've seen a maven plugin called Taglist that produces a report. But won't stop produce a build error. How do you guys catch debugging code and prevent builds? 回答1: You could configure a maven checkstyle plugin to fail the build if it find TODO comments in your

How to prevent a Java project from building when TODO present

旧城冷巷雨未停 提交于 2019-12-02 06:31:10
Recently code containing a debugging override was release to production. The code was clearly marked // TODO - Remove before releasing to production But we have nothing integrated into Maven that would prevent the project from building. I've seen a maven plugin called Taglist that produces a report. But won't stop produce a build error. How do you guys catch debugging code and prevent builds? James You could configure a maven checkstyle plugin to fail the build if it find TODO comments in your code. To get checkstyle to fail a build To get checkstyle to fail a build I followed the advice of

TextMate: Comment-line shortcut does not work anymore (Cmd-/ or Cmd-Shift-7 on my swiss layout)

半腔热情 提交于 2019-12-02 05:35:19
I experience a quite strange behavior in TextMate since some time. I had troubles to use the keyboard shortcut for commenting a line (which is Cmd-/ or on my swiss layout it is CMD + SHIFT + 7 where SHIFT + 7 results in a / ) a few times already since I switched to Lion 2 months ago (before I never had any problems). I then used to restart TextMate and it worked again. But now, restart doesn't solve the problem. So I went into the Bundle Editor and tried to reset the shortcut, and there I can set it to anything I like, but not to Cmd-/ ! Nothing happens when I want to record the shortcut and

Display Comment in Nested Way like Gmail Comment

我与影子孤独终老i 提交于 2019-12-02 03:33:58
I have a table comments , thats look like this, added some mockup content as well: +------------+---------+----------+-------------------+------------------------------------+---------------------------+ | comment_id | user_id | post_id | comment_parent_id | comment_content | comment_creation_datetime | +------------+---------+----------+-------------------+------------------------------------+---------------------------+ | 26 | 1 | 16329 | 0 | Första | 2016-01-24 10:42:49 | | 27 | 1 | 16329 | 26 | Svar till första | 2016-01-24 10:42:55 | | 28 | 1 | 16329 | 26 | Andra svar till förta | 2016-01

Does comments affect when including files in PHP? [duplicate]

梦想的初衷 提交于 2019-12-02 02:24:00
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Commenting interpreted code and performance When you include a file in PHP with include() or any other function, its perfomance is affected by the amount of comments of the included file? (I am not saying I am going to sacrifice legibility) 回答1: No, the savings of time required to parse the file is not even measurable (too small) and not worth slightest consideration. It's definitely not the bottleneck of

Does comments affect when including files in PHP? [duplicate]

丶灬走出姿态 提交于 2019-12-02 02:18:20
Possible Duplicate: Commenting interpreted code and performance When you include a file in PHP with include() or any other function, its perfomance is affected by the amount of comments of the included file? (I am not saying I am going to sacrifice legibility) No, the savings of time required to parse the file is not even measurable (too small) and not worth slightest consideration. It's definitely not the bottleneck of performance, so to say. 来源: https://stackoverflow.com/questions/7786136/does-comments-affect-when-including-files-in-php

LESS Silent Multiline Comment

两盒软妹~` 提交于 2019-12-01 22:29:32
问题 Is there a way to create silent multiline comments in LESS? I want same behaviour as //comment, but for multiline strings. 回答1: As already made clear by @harry the -x and clean-css options remove comments too. Since version 2 the clean-css option has been moved into a plugin ( npm install -g less-plugin-clean-css ). Since Less 2 you can use plugins, see also http://lesscss.org/usage/#plugins ,so you can write and use a plugin which removes your multiline comments. Example: Download and unzip

Deserializing the comments in XML file

给你一囗甜甜゛ 提交于 2019-12-01 21:52:51
问题 I am trying to deserialize the following sample XML file.I have created the schema for this XML file.With the help of schema i am able to deserialize the XML into object. But my problem is i have a XML comments(ex: <!----Test--> ) on my XML file.Deserializer is not reading the comments from the XML to object which i created using schema. And also i noted there is no entry available in schema for the comment node. How can i read the comments from XML file to object? 回答1: The point of object

LESS Silent Multiline Comment

十年热恋 提交于 2019-12-01 21:34:20
Is there a way to create silent multiline comments in LESS? I want same behaviour as //comment, but for multiline strings. As already made clear by @harry the -x and clean-css options remove comments too. Since version 2 the clean-css option has been moved into a plugin ( npm install -g less-plugin-clean-css ). Since Less 2 you can use plugins, see also http://lesscss.org/usage/#plugins ,so you can write and use a plugin which removes your multiline comments. Example: Download and unzip clean-css into your working directory. You can find clean-css at https://github.com/jakubpawlowicz/clean-css