comments

Getting the height of a 'Facebook Comments' widget/social plugin

我只是一个虾纸丫 提交于 2019-12-06 11:12:18
Using Facebook Javascript SDK+XFBML, I'm implementing the fb 'comments widget', as explained here . then, using the fbml line: <fb:comments href="someurl.com" num_posts="2" width="400"></fb:comments> creates an iframe with the comments widget. The height of the iframe is of-course according to the length of the comments; I need to make changes to my page according to the height of the comments widget. I can tap into when the widget has finished loading, by using FB.Event.subscribe('xfbml.render') (I found it more accurate than using 'ready' or 'load'), but I cannot get the height of the

disqus— change 'comment' word

寵の児 提交于 2019-12-06 11:10:51
问题 how i can change 'comment' word to 'review' from total number of comment [ 6 comment ] -> [ 6 review ] 回答1: You do this on the Disqus website, in "Settings" > "Appearance" ( http://your-site-slug.disqus.com/admin/settings/appearance/ ). Almost at the bottom of that page, you have the "Comment count link" setting, where you can change the text for zero, one or more comments. 回答2: This is updated GUI you can find it "Settings" > "General" and if you need to remove 'comment' word you can't so

Textmate “comment” command not working properly for css code

假如想象 提交于 2019-12-06 11:04:48
问题 I'm having some problems when I toggle the comments in TextMate for CSS source code. Using the shortcut CMD + / I activate the "Comment Line/Selection" command from the "source" bundle. The problem is that it inserts a series of // for all kinds of languages. For example, in CSS files it is supposed to insert a /**/ block, but it doesn't. In CSS files I also tried the "Insert Block Comment" command from the source bundle with the weird result that I get the following // . // -----------------

vb.net - automatic XML comments - ''' — Can I change the automatic defaults?

核能气质少年 提交于 2019-12-06 10:38:00
I'm using Visual Studio 2008 SP1 in VB.NET, when I type ''' above a function, some automatic default XML comments appear: ''' <summary> ''' ''' </summary> ''' <remarks></remarks> I would like this to be the following instead: ''' <summary></summary> ''' <remarks></remarks> Is there a way to change what appears when you type ''' above a function? They key is in the VBXMLDoc.xml file. It provides templating for all of the XML comments in VB.NET. Still have not checked if there is a solution for C#. I went so long in wanting it for C#, but have actually just gotten used to the ugly default format

Social Plugins for Facebook Photos and Albums

廉价感情. 提交于 2019-12-06 09:53:25
Is it possible to use Social Plugins such as the Comments and Like plugins to display the comments and likes for a photo or album uploaded to Facebook? I have tried various URLs for the HREF attribute (the photo source, the photo page, the graph URL, etc) and cannot get the plugin to display existing comments against the photo. Can someone suggest the correct URL (if any) that I should use? I can get access to the list of comments using the graph API, however I would prefer to make use of the social plugins if possible. Currently you can not use them in that manner. You can use the graph api

Remove all comments from VB.NET source code file

流过昼夜 提交于 2019-12-06 09:47:47
问题 Is there a macro in the Visual Studio editor to remove all comments from a VB.NET source file? 回答1: Using menu Edit -> Find and Replace -> Quick Replace with Regular expressions Find what: ^{.+}'.+$ Replace with: \1 will replace text ' comment to text 回答2: EDIT* http://bytes.com/topic/visual-basic-net/answers/579000-utility-remove-comments-vb-net-files has some options. such as write a VB.NET program to do it? should be easy: any line with a single quote as the first character should be

How to comment out comment in Doxygen documentation

你离开我真会死。 提交于 2019-12-06 07:18:30
问题 I am using Doxygen's \page , \subpage and \section constructions to make overview documentation for my application. Somewhere in this I am using HTML to create a nicely formatted table. However, I want to remove a part of the table in the output, without removing the comment itself. E.g. /*! \page MAINPAGE Main Page <table> <tr> <td>Do This</td> <td>100</td> </tr> <tr> <td>Do That</td> <td>200</td> </tr> <tr> <td>Yet another one</td> <td>300</td> </tr> </table> I want to remove the line

Regex to source code comments

不羁的心 提交于 2019-12-06 07:08:21
Is there a regular expression to match any line comment, but avoiding the comments inside strings? I need all content in a line after // (with the // included) For example: //Comment (match!) bla bla bla bla //Comment (match!) this string "foo // foo" (don't match because it's inside "") The following regular expression will correctly match any strings and regular expressions in the input: var strings = /("((.|\\\n)*?([^\\"]|\\\\)|)"|'((.|\\\n)*?([^\\']|\\\\)|)'|\/[^*](.*([^\\\/]|\\\\))\/|\/\*\/)/g; You can remove strings from the input and then match comments using another regular expression

Count the number of threads on a parent comment in ReactJS

怎甘沉沦 提交于 2019-12-06 06:31:11
I have an array in React like this. { "comments":[ { "id":1, "comment_text":"asdasdadasds", "author":"adsfas", "post_id":1, "children":[] }, { "id":2, "comment_text":"idlsfgh", "author":"asdsda", "post_id":1, "children":[ { "id":3, "comment_text":"fdsfdsfdsf", "author":"sdfdsf", "post_id":1, "children":[ { "id":4, "comment_text":"fdsfdsfd", "author":"sdfsdfdsfsd", "post_id":1, "children":[] } ] } ] } ] } Now, I want to count the total number of replies on every parent comment. So the array output - { "result":[0, 2] } I am using Mongo, Express, React, NodeJS. I have tried of lot of things like

How to generate .NET classes with comments from WSDL and XSD

谁都会走 提交于 2019-12-06 06:11:41
问题 There are some XSDs and WSDLs. I want to generate C# code from them. I used svcutil.exe, but it does not generate XML-comments from XSDs annotations: <annotation> <documentation>VERY USEFULL DOCUMENTATION</documentation> </annotation> I want this inside generated file: public class SomeData { /// <summary> /// VERY USEFULL DOCUMENTATION /// </summary> public string SomeField {...} } Another question: how to force svcutil.exe to generate one file per class? (I know that I can use refactor from