Code Monkey home page Code Monkey logo

Comments (25)

mrmartineau avatar mrmartineau commented on August 29, 2024

the package was recently updated, could you check you are running the latest version by running the 'Upgrade/Overwrite all packages' command in Sublime.

from jquery.

JosteinSydnes avatar JosteinSydnes commented on August 29, 2024

thanks for you quick reply. Just tried it and still the same issue.

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

can you make sure that you are using the Javascript (jQuery) syntax? Check the bottom-right of your sublime window to see..

from jquery.

JosteinSydnes avatar JosteinSydnes commented on August 29, 2024

Hmm, mine says jQuery(Javascript), i am on a mac.

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

Sorry, you have it right. I can't explain why yours isn't working. Will need to investigate

from jquery.

JosteinSydnes avatar JosteinSydnes commented on August 29, 2024

ok, thanks for you assistance so far, here is what i have tried so far:

  • Removing, reinstalling package.
  • Disabling other packages, in case of conflict.
  • Changing color schemes and themes.

from jquery.

JodiWarren avatar JodiWarren commented on August 29, 2024

I am also having the same issue as @Oyvind-Eikeland, and have tried the same things suggested. I am on the Dev Channel, build 3084, OSX Yosemite.

from jquery.

JodiWarren avatar JodiWarren commented on August 29, 2024

FWIW, installing Javascript Ultimate has fixed this problem for me.

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

@JodiWarren I updated the code recently after the dev of JavascriptUltimate contacted me. I didn't realise this would not work without that package.. If that's the case, I will fix the bug or revert because I don't think this should rely on that package.

from jquery.

JodiWarren avatar JodiWarren commented on August 29, 2024

Probably worth a try - I tried installing it after seeing your commit message mentioning it. I haven't tried it with your previous commits. FWIW I inspected with Scope Hunter with and without Javascript Ultimate installed.

On a var (for example):

With JSUltimate I get:

source.js.dom
storage.type.js

Without, I get:
source.js.dom.jquery

That's all I get for nearly everything. The only exceptions with highlighting are the following:

Type of thing Addition to the scope
jQuery constants support.constant.js.jquery
jQuery functions support.function.js.jquery
Dollar signs on selectors punctuation.section.class.js
Text inside selectors meta.selector.jquery
meta.selector.css
entity.other.attribute-name.class.css

Let me know if there are any other useful tests I can do

from jquery.

franciscolourenco avatar franciscolourenco commented on August 29, 2024

+1 It wasn't working until I installed Javascript Ultimate

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

cc @JoshuaWise

from jquery.

JosteinSydnes avatar JosteinSydnes commented on August 29, 2024

Thank you @JodiWarren, installing Javascript Ultimate fixed the problem.

from jquery.

JoshuaWise avatar JoshuaWise commented on August 29, 2024

This isn't what I was experiencing when I was testing the solution I suggested to @mrmartineau, but there is no doubt a solution that doesn't rely on JavaScript Ultimate. I'll take a look at it tonight.

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

Thanks @JoshuaWise

from jquery.

JoshuaWise avatar JoshuaWise commented on August 29, 2024

I added a pull request with a fix for this issue.

from jquery.

jiayouzl avatar jiayouzl commented on August 29, 2024

After updating Sublime text 3 to build 3092 the syntax highlighting for jQuery stopped working, i can select it and the code hinting works but no colors show in the code, what can i do to fix it?

from jquery.

JoshuaWise avatar JoshuaWise commented on August 29, 2024

Sublime Text 3 seems to be going through some flux about how they handle syntax definitions. People using the edge/developer builds right now will no doubt experience issues in the category. If you must use the edge build, try installing or removing JavaScript Ultimate. That may solve your problem for the time being.

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

Hi all, what would you say if I removed the syntax definition? I have just done this on my HTML5 package to fix bugs as it seems there are too many conflicts with these packages and the default ones. Sublime's default syntax defs or some of the other more specialised ones (Javascript Ultimate or Babel) are better suited anyway..

Please let me know and I will do this soon..

from jquery.

JoshuaWise avatar JoshuaWise commented on August 29, 2024

When you say "removed the syntax definition", do you mean, reduce your package to only providing snippets/auto-completes?

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

Yes, exactly.

from jquery.

JodiWarren avatar JodiWarren commented on August 29, 2024

I’ve just gone through about 10 different files, testing each one with both the default ST 3 (latest version) Javascript syntax definition and the jQuery syntax definition, and I couldn’t find an noticeable difference. So I can’t personally see any problem with you removing it.

On 19 Jul 2015, at 23:03, Zander Martineau [email protected] wrote:

Yes, exactly.


Reply to this email directly or view it on GitHub #22 (comment).

from jquery.

mrmartineau avatar mrmartineau commented on August 29, 2024

Thanks @JodiWarren, I think I'm just gonna remove it. There's no real benefit these days.

from jquery.

Vahanbarsamian avatar Vahanbarsamian commented on August 29, 2024

Just i had the same issue, just change in "view" ->"Syntax" the "javascript" to" javascript ultimate" language

from jquery.

Thom1729 avatar Thom1729 commented on August 29, 2024

@Vahanbarsamian These days, you should probably use Sublime's built-in JavaScript highlighting. It should have the most accurate support for standard JavaScript — and if it doesn't, let me know and I'll fix it.

JavaScript Ultimate claims to be “More accurate to the JavaScript specification”, but it's not clear what the author is referring to, and he hasn't responded to my request for clarification.

from jquery.

Related Issues (18)

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.