Permalink
Browse files

added gedit language-spec

  • Loading branch information...
1 parent a9851f0 commit 7225738041890222a4e8716aefdbf4da3c01b31a @niftylettuce niftylettuce committed Jun 29, 2011
Showing with 502 additions and 1 deletion.
  1. +2 −1 Readme.md
  2. +25 −0 docs/gedit.md
  3. +475 −0 editors/gedit/styl.lang
View
@@ -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
@@ -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.
View
@@ -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)
Oops, something went wrong. Retry.

0 comments on commit 7225738

Please sign in to comment.