What's on my mind

HTML Support CodeIgniter Sugar For Espresso

In [Original CodeIgniter sugar]( is not support HTML syntax highlighting. So, I can't use CI syntax in view. PHP support html syntax hightlighting. Why CI sugar is not support ? So, I tried to add HTML support. I don't know about how to make sugar but I can do it. I tried to read PHP sugar and can combine it. It's easy, just add 1 line in Syntaxes/CodeIgniterSyntax.xml. I add html support
<include syntax="text.html.basic" />

So, It will be look like this

<?xml version="1.0"?>
<syntax name="sourcecode.php.codeigniter">

<include syntax="sourcecode.php"/>
<include syntax="text.html.basic" />


If you don’t want to add manually, you can download zip file from github. I made fork from original author.

1. Download zip or tar.gz  from

2. extract it.

3.Change the folder name to CodeIgniter.sugar. Folder icon will change.

4. Double click CodeIgniter.sugar. It will be install automatically.

Use JSON with Notepad++

JSON is js object, so we can use javascript syntax highlighting.

First, Setting > Style Configure and then select Javascript in list box. you will see User ext in below. Fille json and then Save & Close.

Second, Setting > Preference and Go to File Association Tab > Customize and type .json in textbox and click -> . You will see .json in Registered exts: listbox.

After that , you can double click to .json file. It’s will open with notepad++ and also include syntax highlighting. If you don’t like syntax, you can change javascript syntax highlighting in Setting > Style Configuration > Javascript.