Giter VIP home page Giter VIP logo

craft-twig.tmbundle's People

Contributors

1stevengrant avatar beausmith avatar benparizek avatar budrick avatar caseycs avatar csuarez avatar dominicvonk avatar duosrx avatar jigante avatar kucharovic avatar taavi avatar uhnomoli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

craft-twig.tmbundle's Issues

Error loading syntax file

Hi,
I've just installed Craft-Twig and it's a really handy syntax highlighter but I'm having some trouble keeping it working.

I have Sublime Text 3 build 3126 installed on Ubuntu 16.04

When I restart Sublime text I get this message:

Error loading syntax file "Packages/Craft-Twig/Craft-Twig.tmLanguage": Unable to open Packages/Craft-Twig/Craft-Twig.tmLanguage

Also the syntax Highlighting disappears when the file you are working on is saved. You can get the syntax to work again if you re-select craft-twig as the syntax.

I have tried the following:

  1. Remove the package
  2. Exit Sublime Text
  3. Restart Sublime Text
  4. install craft-twig

This does not work and I cannot find any reference to craft-twig outside of the Installed Packages folder.

How can I fix this?

Little bug in includejs completion

includejs [tab] gives

{% set js %}
    // JS here

{% endset %} 

{% includeCss js %}

Which puts the script in the head as CSS :) - notice that last line.

Add 'switch' as a snippet

Would be great if switch could be a tab trigger to output:

{% switch condition %} ... {% endswitch %}

Twig syntax not auto selected.

When I open a Craft html file the HTML (twig) syntax is not automatically selected. Is there a way to make this happen?

autocomplete within brackets

Thanks for providing this package for Sublime Text!

One thing I run into often: I tend to type out my tags starting with the brackets. I don't rely heavily on autocomplete based on keywords. I guess for shorter keywords like for it's not as apparent, but if I start typing:

{% autoes

Autocomplete pops up and gives me the option to complete the tag, which gives me:

{% {% autoescape "type" %}
    
{% endautoescape %}}

Which is a broken tag nested in brackets I started typing.

Is it possible to detect that I've already typed the opening tag brackets and just complete the opening tag so I can continue typing what I want inside it? This consistently trips me up.

Thanks!

Does not activate in PHPStorm version 2017.1.2

Hello,

Maybe I did some mistakes but some other with more experience than me were also not able to activate your bundle.
We use PHPStorm and included your bundle
twig

Do we have to do something else or why doesn't it work at all?
When I type asset and press TAB then it is transformed to <asset></asset>
When I unregister the native file type from PHPstorm I receive plain text without any syntax highlighting in my twig files but they are activated in my File Types

files

Could you help me please?
I appreciate your help

Tab trigger stopped working

Hi, for some reason tab trigger on Twig Tags (extends, include, block, ...) stopped working for me a few days ago. It was working for the 'customized for Craft' tags (assets, cache, ...) and the functions (ceil...).

I tried the 'upgrading notes', I fixed it by manually downloading the package from GH. (Downloading on package control mentions using 4.1.0, GitHub mentions both 4.0.1 and 4.1.0)

I'm on Win7, Sublime 3.1.1, build 3176.

bundle lacks mandatory keys

Hey, thanks for all the great tools from BarrelStrength. I've cloned over the Craft-Twig.tmbundle every which way I know how and can't avoid getting this message when i try to pull it into TextMate.

The bundle " Craft-Twig " could not be installed because it is malformed - the bundle lacks mandatory keys in its property list.

Is this something you can help me with on your end? Thanks!

Inline JS and CSS

A little issue is that inline CSS and JS set and include blocks don't have the correct syntax highlighting.

If you could make the package apply the correct syntax highlighting that would be really great.

ie.

{% set calendarTodayCss %} /* <style>  syntax highlighting */
.fc-unthemed .fc-today {
    background: #ff0000;
    opacity: .5;
} 
.hidden { display: none; }
{% endset %} {# </style> syntax highlighting #}

{% includeCss calendarTodayCss %}

and likewise for JS...

All in all a great package though well done guys :)

Sublime Text throws regex error

With Sublime Text 3 (stable, build 3083) I'm suddenly getting a regex error when I first launch Sublime and load/activate a .twig file:

Error loading syntax file "Packages/Craft-Twig/Craft-Twig.tmbundle-2.0.2/Syntaxes/Craft-Twig.tmLanguage": Error in regex: target of repeat operator is not specified in regex (?ix) # Enable free spacing mode, case insensitive
# Adding parentheses around this pattern breaks things
?<={%\s\bincludecss\b|\bincludehirescss\b\s%}

I cleared the relevant Library caches as suggested here and reinstalled several times, both HEAD and latest release, and I can't seem to find my way out of this error. I loaded up different templates, some complex and others very simple, and experience the same thing regardless of what I do.

I've also installed manually and via Package Control.

Anything else I can try?

Code highlighting less scannable

Thank you very much for the recent updates to this :)

In Sublime Text, I find that the code within Twig tags is no longer highlighted as clearly as it was in version 1, making it harder to read/scan.

Version 1 examples:
screen shot 2015-06-23 at 09 00 56

screen shot 2015-06-23 at 08 56 01

Version 2:
screen shot 2015-06-23 at 08 57 12
screen shot 2015-06-23 at 09 00 17

Is there any way to bring back the old code highlighting from version 1?

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.