JavaScript

Double Click to Select All Code
Double Click to Select All Code
JavaScript, jQuery

Double Click to Select All Code

When you want to display code, you are probably using PRE elements. The fact that these elements can contain markup makes them perfectly suited for syntax highlighting. Some plugins make it easier to copy the code using a button. Google Prettify has no such option. Let’s see if we can make copying easier by providing a “double click to select all”-feature to our pre fields.

Regular Expression Groups: .NET vs JavaScript
Regular Expression Groups: .NET vs JavaScript
.NET Core / C#, JavaScript, Regular Expressions

Regular Expression Groups: .NET vs JavaScript

As a developer, I love to solve common string problems with regular expression. Sure, they are sometimes hard to read, but you can do so much with such a small expression! It is nice that many languages have support for them, but sometimes it feels like every language creates its own dialect. Let’s look at the difference between regular expression groups in .NET and JavaScript.