Code Monkey home page Code Monkey logo

kit.sugar's Introduction

kit.sugar

Add html syntax highlighting for CodeKit's .kit files in Espresso.app.

Espresso automatically detects html syntax for .kit files when they have an opening <html> tag, but it does not for partials (ie. when <html> is not declared). This sugar solves the issue.

In the future I might add more functionality such as .kit statements detection and coloring (@import, $variables, etc), but not for now.

Update: Syntax highlighting has come!

Now Espresso will recognize and color the following .kit statements:

  • @import or @include
  • variables in both in the @ and in the $ form, but not in the simple string form, so: @variable and $variable will be colored, but not variable (all three are valid .kit variables)
  • and most importantly, comments <!-- -->

This sugar makes working with .kit files in Espresso a real pleasure. Up until now I had this terrible experience of trying to train my eye not to ignore code comments, which was driving me crazy. Now they are highlighted and beautiful.

I am still investigating an issue with the placeholder theme colors being inverted in some circumstances.

Here is a preview image:

The CodeKit syntax highlighting for Espresso

The preview above uses GSVRailcasts, my personal theme for Espresso. The actual look when you install the sugar will probably be different. You might want take a look at it, by the way, it's dark and spicy.

Please note that since CodeKit syntax is written inside html comment blocks, this sugar will also color standard html comment blocks that you might have in your .kit files (not in .html files, though). This behavior might be changed in the future. I still have to investigate if it is feasible.

Feel free to fork and contribute to this if you feel like it.

Hope you like this. I sure do.

(If you are wondering what theme I am using in Espresso, it is my personal fork of Railcasts, I will be adding it to my github profile soon)

Installation

  1. Download the zip file at https://github.com/GioSensation/kit.sugar/archive/master.zip and extract it if the browser doesn't do this for you
  2. Rename the folder to kit.sugar
  3. Double click the .sugar file
  4. Restart Espresso and enjoy!

Coded with ☺ in Italy by Gravida – Come say hello!

kit.sugar's People

Contributors

giosensation avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.