Facebook has released social media optimization protocol known as Open Graph Protocol. It facilitates articles on our website behaving as 'graph objects' which can interact with other facebook objects. More information can be found at http://ogp.me
Wednesday, December 19, 2018
Wednesday, December 5, 2018
Visual Studio extension to highlight all occurances of selected word
This is a useful visual studio extension. Just found its source code at
https://github.com/sunven/SelectionHighlight
I modified it to allow words beginning with @ or #. In MatchTagger.cs add this declaration:
Next, change foreach loop in private void
OnSelectionChanged(object sender, object e) like so:
That's it! It can now be built and added to our visual studio.
As a side note, also found out on stackoverflowhttps://stackoverflow.com/questions/9281662/how-to-debug-visual-studio-extensions that visual studio extensions can be debugged by add the following settings to first <PropertyGroup> in the extension's project file:
Reference: https://stackoverflow.com/questions/9281662/how-to-debug-visual-studio-extensions
https://github.com/sunven/SelectionHighlight
I modified it to allow words beginning with @ or #. In MatchTagger.cs add this declaration:
foreach (var c in text)
{
if (!char.IsLetterOrDigit(c)
&& !Array.Exists(allowedSpecialChars, ch => ch == c)) return;
}
As a side note, also found out on stackoverflowhttps://stackoverflow.com/questions/9281662/how-to-debug-visual-studio-extensions that visual studio extensions can be debugged by add the following settings to first <PropertyGroup> in the extension's project file:
<StartAction>Program</StartAction>
<StartProgram>$(DevEnvDir)\devenv.exe</StartProgram>
<StartArguments>/rootsuffix
Exp</StartArguments>
Subscribe to:
Posts (Atom)
c# httpclient The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
If we get this error while trying to get http reponse using HttpClient object, it could mean that certificate validation fails for the remo...
-
SharePoint has a great feature to set terms which can be used to tag contents and enable terms based navigation and several other interesti...
-
Responsive design http://webdesignerwall.com/tutorials/5-useful-css-tricks-for-responsive-design http://palantir.net/blog/responsive-de...
-
Secure Microservices Using JWT With Ocelot in .NET Core (code-maze.com)