commenting

Trying to display comments near appropriate doc range in Vue component

点点圈 提交于 2020-04-30 06:27:39
问题 I am attempting to emulate Medium style comments in an html document. This answer has gotten me nearly there: How to implement Medium-style commenting interface in VueJS With that method, I can highlight text and make comments, but I want to display the coments on the same line as the range the commenter selected. The code as I have treats every paragraph it seems as a separate document, such that I don't know how to return to the correct paragraph to find the original range being commented

How to implement Medium-style commenting interface in VueJS

眉间皱痕 提交于 2020-04-18 05:46:38
问题 I really like the commenting interface employed by Medium, allowing users to highlight a portion of an article and comment on that specific part. I would like to implement a similar commenting facility in a VueJS app. I found this package which does something similar: http://aroc.github.io/side-comments-demo/, but I want to try to find something that has been updated more recently. Also, it requires jquery, which I don't currently use and I would like to avoid adding that dependency if

What is your personal approach/take on commenting?

廉价感情. 提交于 2020-01-12 04:53:27
问题 Duplicate What are your hard rules about commenting? A Developer I work with had some things to say about commenting that were interesting to me (see below). What is your personal approach/take on commenting? "I don't add comments to code unless its a simple heading or there's a platform-bug or a necessary work-around that isn't obvious. Code can change and comments may become misleading. Code should be self-documenting in its use of descriptive names and its logical organization - and its

Word-wrapping comments in Netbeans

主宰稳场 提交于 2020-01-02 01:46:28
问题 /* * * This is a long comment. I broke it into lines, but that made it impossible to edit without screwing up the formatting. Is there a way to make Netbeans add line breaks automatically? * */ Reads: This is a long comment. I broke it into lines, but that made it impossible to edit without screwing up the formatting. Is there a way to make Netbeans add line breaks automatically? 回答1: As for today, the current NetBeans (7.3) word-wraps comments with some nice available extra options when

getting notification when someone comments using comments plugin

北慕城南 提交于 2020-01-01 16:11:07
问题 So I have an iFrame app on a fan page, which includes the comments plugin. Is there a way I/any admin can receive a notification or email every time someone adds a comment? 回答1: You can subscribe to comment.create event and send the notification to admin in any way you prefer, once comment is created. Facebook itself doesn't provide such functionality. This may looks like this (I assume Facebook JavaScript SDK is already loaded on page before doing this, read about it in documentation on

javascript: what does /*@ @*/ mean?

做~自己de王妃 提交于 2019-12-29 07:30:23
问题 Can someone explain how the beginning and end of the html5shim script works? the script starts with /*@ and ends with @*/ like this: /*@cc_on(function(a,b){function ........ (this,document);@*/ What is the /*@ @*/ doing? I would expect the /* */ sequence to comment out all lines in between them, but since the script executes, that cant be the case here? I'm confused. found at: http://html5shim.googlecode.com/svn/trunk/html5.js 回答1: IE's JScript supports ‘conditional compilation’, a trick of

How To write comments [closed]

*爱你&永不变心* 提交于 2019-12-25 02:44:49
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . Hi I have like 50 pages of code that I should write comments to it ... Can you guys show me the best way. I meant I need you to write me a sample ... the comments should contain nearly everything (classes, constructors, attribute, methods, events, functions) 回答1: Don't comment

Getting Disqus html code to show in source for SEO purposes

限于喜欢 提交于 2019-12-24 01:37:13
问题 Recently started using Disqus on a site & was wondering if there was any way possible to have it so the actual html code will show up in the source page? I noticed this site is doing it.. http://adamkaras.com/blog/2009/06/24/disqus-custom-css-styling-in-3-easy-steps/ But I'm not sure how? 回答1: The WordPress Disqus plugin and Drupal's plugin use the Disqus API to mirror all comments into their local databasees. There may be equivalent plugins for other CMSes, and it'd be fairly easy to

Commenting C code, header and source files [closed]

匆匆过客 提交于 2019-12-23 06:55:14
问题 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'm looking for a "best practice" to document my C code. Like in any project I have some header files ".h" and the respective source file ".c" In the header file what kind of comment you put in? And in source files? The question arise up because since I commented well my header

Commenting C code, header and source files [closed]

Deadly 提交于 2019-12-23 06:54:39
问题 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'm looking for a "best practice" to document my C code. Like in any project I have some header files ".h" and the respective source file ".c" In the header file what kind of comment you put in? And in source files? The question arise up because since I commented well my header