For a plugin for Sublime Text I was required to install a composer package globally. In order to do this I had to run the following command: composer global require “asm89/twig-lint” “@stable” The …
Tag: sublimetext2
Matching all three kinds of PHP comments with a regular expression
I need to match all three types of comments that PHP might have: # Single line comment // Single line comment /* Multi-line comments */ Something I should mention: I am doing this in order to be able to recognize if a PHP closing tag (?>) is inside a comment or not. If it is then ignore it, and