Skip to content

Commit

Permalink
added gedit language-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Jun 29, 2011
1 parent a9851f0 commit 7225738
Show file tree
Hide file tree
Showing 3 changed files with 502 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ form input {
- [@media](/LearnBoost/stylus/blob/master/docs/media.md) support
- Connect [Middleware](/LearnBoost/stylus/blob/master/docs/middleware.md)
- TextMate [bundle](/LearnBoost/stylus/blob/master/docs/textmate.md)
- gedit [language-spec](/LearnBoost/stylus/blob/master/docs/gedit.md)
- VIM [Syntax](https://github.com/wavded/vim-stylus)
- transparent vendor-specific function expansion

Expand Down Expand Up @@ -122,4 +123,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 changes: 25 additions & 0 deletions docs/gedit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

## gedit language-spec

Stylus ships with a temporary version of `styl.lang` for [GtkSourceView](http://live.gnome.org/GtkSourceView), based off [Yanekk](https://github.com/yanekk)'s [work](https://github.com/gmate/gmate/blob/master/lang-specs/scss.lang) on `scss.lang`.

![Stylus Language Specification for GtkSourceView](http://i.imgur.com/uBppL.png))

This is a start and provides a basic [language spec](http://live.gnome.org/Gedit/NewLanguage) for GtkSourceView editors such as [gedit](http://projects.gnome.org/gedit/).

**Installation Steps**

Download `styl.lang` to your local `language-specs` folder:

wget https://raw.github.com/LearnBoost/stylus/master/editors/gedit/styl.lang ~/.local/share/gtksourceview-2.0/language-specs/styl.lang

Update the mime database and enjoy Stylus syntax in gedit!

cd ~/.local/share
update-mime-database mime

This is much more enjoyable than having gedit recognize your `.styl` files as Apache Confs!

---

**Have a sweet tooth?** Add more icing to gedit with gedit-icing: [https://github.com/niftylettuce/gedit-icing](https://github.com/niftylettuce/gedit-icing)
Loading

0 comments on commit 7225738

Please sign in to comment.