Adding PHP Twig syntax to Sublime 3

I needed to start working with Twig recently so I had to add syntax highlighting to Sublime for it. Pretty easy and the best tutorial I found was here:

http://stackoverflow.com/questions/26294305/twig-syntax-highlighting-sublime-text-2

1. Download

The files can be downloaded from

https://github.com/Anomareh/PHP-Twig.tmbundle/archive/master.zip

or you can also clone them with:

2. Installation

To install this bundle in Sublime Text, a few extra steps are required.

a) Open Sublime Text and in the Preferences menu click Browse Packages.

b) In the directory that was just opened, create a new directory PHP-Twig/.

c) Copy the content of the repo you downloaded into the directory you just created.

d) Move the contents of the PHP-Twig/Syntaxes/ directory to PHP-Twig/ (one directory up).

e) Restart Sublime Text.

3. Apply

To apply syntax highlighting on your Twig HTML files : Open a .html.twig file Go to View menu → SyntaxOpen all with current extension asHTML (Twig).

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Cycling around Iceland – Part 1

I know there haven’t been much articles posted in the last 5 weeks, but that’s because I went to cycle around Iceland. This is the first of a series of articles that will describe the trip but also help me reflect on it. I will be posting the days one at a time more as a personal diary and a future reference, but also for anyone who is interested to follow. Continue reading

Facebooktwittergoogle_plusredditpinterestlinkedinmail

Happiness

The most common way to think about happiness is of the feeling we have when we are smiling and laughing, however there is more to it. Happiness is the sense of contentment with the mind, when we are at peace with it. And this doesn’t have to depend on the external circumstances being favourable, funny or happy. We have the opportunity to experience it regardless of those external forces. Continue reading

Facebooktwittergoogle_plusredditpinterestlinkedinmail