Sublime Forum

Sublime new version HTML view javascript no longer views correctly - colored syntax missing?

#1

Sublime recently updated itself now when i view my HTML pages all the java-script displays with no syntax color highlighting.

I have to switch to java-script to edit code then back to html, making life a nightmare!

Can anyone assist?

1 Like

#2

Same thing happens when viewing HTML+PHP files.

0 Likes

#3

I would prefer to rollback to my old version - just dont have a clue how to do this. This update and the changes it has made are making it difficult to use sublime. Since most of my files have HTML and JS in one document its made a mess of the UI.

0 Likes

#4

Can you please post a sample file where this is a problem?

0 Likes

#5

I assume you mean a screen shot - this shows the file viewed as HTML the javascript is colored in white - in the previous version the JS highlighted correcting in the HTML view.

0 Likes

#6

Rolled back to build 3083 on Ubuntu 14.04. Everything seems fine.

0 Likes

#7

Screenshot is nice, but the actual file would be preferred for easier reproduction. You can minify the file as much as you want or need to as long as the issue still occurs.

0 Likes

#8

Yep for sure give me 30 mins ill wiz a file over. Thanks for your help.

0 Likes

#9

How should i send the file, can only upload images here?

0 Likes

#10

You can paste it in a comment wrapped like so:

```js
code
```
```

or host it on http://pastebin.com/ for example.
0 Likes

#11

http://pastebin.com/ER8cJKei

0 Likes

#12

I think you have a typo in your script tag -> <script type="text/javscript">. It is missing an “a”. I think that might make a difference in getting the highlighting. Interesting that that used to work even so, but doesn’t any more.

2 Likes

#13

Yes it does! Template file in my project every doc has the typo!

Thank you so much! Fixed a headache…

Clearly new version has improved java-script/syntax coding

0 Likes