Code Monkey home page Code Monkey logo

atom-jade's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

atom-jade's Issues

not colored lines, see example code

template(name="layout")
  +yield region="header"
  #content-wrapper.container-fluid
    +yield 
    //- not colored
  +yield region="footer"

template(name="home")
  +if currentUser
    h1 current user
  else 
    //- not colored 
    .box
      h1 no user

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\***\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:552:9)
<unknown> (C:\Users\***\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:168:43)
Package.measure (C:\Users\***\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:147:15)
Package.load (C:\Users\***\AppData\Local\atom\app-0.194.0\resources\app.asar\src\package.js:161:12)

apm install module?

apm install jade

doesn't work with this package. does it need to be bundled/registered with atom.io ?

spell check not working

I've made sure that text.jade is in the settings for the spell check package, but spelling errors do not get underlined at all. If I change the grammar to haml, everything works as expected, although obviously not ideal if you're using jade.

Stylizing code blocks

Starting from Jade 1.11.0, templates can have multi-line javascript such as:

-
    var a = 'multi';
    var b = 'line';
    var c = 'yay!';

h1 #{ a } #{ b } #{ c }

Currently rendering as:
render

Changelog?

It would be great to have changelog that people can view in Atom to see performance changes, API changes, bug fixes, feature additions, etc.

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:550:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:172:43)

Improper colors applied to "Block in a tag" plain text if applied to a mixin

Issue: This is probably super low priority, but I figured I'd flag it anyway. The first word in any line of "Block in a tag" plain text applied to a mixin will have the wrong coloring applied. I understand that this is likely not best practice, but it is still valid!

Correct Coloring

If you add a period after an element, any text within that element will be interpreted as plain text instead of Jade. This is called "Block in tag" plain text. For example:

p.
  Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue
  laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante venenatis
  dapibus posuere velit aliquet. Vivamus sagittis lacus vel augue lapreet
  rutrum faucibus dolor auctor.
Incorrect Coloring

However, if instead of a parent element, you instead use a mixin which defines a block, such as the following, you'll get incorrect coloring, even though it is still valid Jade and will be rendered properly. The Jade interpreter appears to believe that these are elements, although I could be wrong.

mixin paragraph()
  p
    block

+paragraph().
  Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue
  laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante venenatis
  dapibus posuere velit aliquet. Vivamus sagittis lacus vel augue lapreet
  rutrum faucibus dolor auctor.

(It looks like even the service GitHub is using to display code doesn't render this properly either!)

Of course you could instead use pipes, but that's besides the point :-). Plus using pips becomes more difficult with large, complicated blocks of text (like possibly content contained within a <script> tag)

mixin paragraph()
  p
    block

+paragraph()
  | Sed posuere consectetur est at lobortis. Vivamus sagittis lacus vel augue
  | laoreet rutrum faucibus dolor auctor. Integer posuere erat a ante venenatis
  | dapibus posuere velit aliquet. Vivamus sagittis lacus vel augue lapreet
  | rutrum faucibus dolor auctor.

Screenshot taken from Atom:

screen shot 2015-08-18 at 5 24 01 pm

More information about plain text rendering in Jade: http://jade-lang.com/reference/plain-text/

Horizontal scrolling pane crash

I've encountered a bug where if I select text code and scroll horizontally while two vertical panes are open. The pane itself locks up as soon as the mouse cursor goes to the end of the pane. The stays locked and displays the following in the chrome console:

Uncaught RangeError: Maximum call stack size exceeded

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\futer_000\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:550:9)
<unknown> (C:\Users\futer_000\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:172:43)

Snippets not available after package install

I'm new to atom.

I can't get the snippets to load after i install the package. even if i manually set syntax: jade it's not working :/ I've tried reinstalling the package and restarted atom to no avail :(

tag interpolation bug

When using tag interpolation (inline elements) with the #[ ] syntax, atom treats each word inside as if it is a tag. It should only treat the first word as a tag.

p Do #[em not] touch anything.
<p>Do <em>not</em> touch anything.</p>

screen shot 2015-03-14 at 14 12 34

screen shot 2015-03-14 at 14 18 31

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:565:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:187:43)

script highlight is breaking

script highlight is work when

some
  script(type='text/javascript').
    var x = 'lol';

insert new line before script

some

  script(type='text/javascript')
    var x = 'lol';

it is not highlight.

test/test.jade:

2015-01-31 17 33 23

2015-01-31 17 37 48

Thanks

Highlighting breaks

atom-jade

Should body not be highlighted?

And it seems that when nesting another tag inline using : like seen in picture the rest lose it's syntax highlight.

Comment not being stylized

I noticed that when a comment is one or more lines after, it does not get stylized.

Next line
yes

Next next line
no

Relatively few colors are used to distinguish many parts of this syntax theme.

Atom with built in Atom Dark theme
image

Sublime with Monokai variant
image

As you can see with a built-in theme there are very few things that atom-jade is currently distinguishing. It did not bother me when I was using it at first, but when I had to teach someone jade, the lack of syntax highlights made learning very difficult, like inline javascript being the same color as the classes tags, etc.

I will submit several different pull requests that utilize similar styling names as the packaged language-css for atom.

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\**********\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:550:9)
<unknown> (C:\Users\**********\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:172:43)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:550:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:172:43)

Jade to Pug

About the pull request #62

I think we should change the name of the library to something like language-pug, just to update to the new name and to bring some consistency between the repository and the name of the plugin.

Let me know what do you think about this.

Jade Highlighting in JavaScript tags

  script(type='text/template', id='tmpl-name')
    div.name
        p <%= name %>

Is not highlighted, but working with backbone makes such templates to a daily routine.
Can you guys add the support for script tags inside jade files?

atom detect .jade as .html

I want to see jade highlighting when I open .jade file on mac. Currently I have https://atom.io/packages/language-jade installed, but when I open .jade file atom detect it as html. I install https://atom.io/packages/file-types and add to config file (atom->open your config):

"file-types":
    jade: «source.jade»

It don't change anything at all. I think default atom language-html plugin override my settings. If I disable language-html, then atom detect .jade correctly and highlight it properly. But without language-html plugin atom detect .html as plain text and don't highlight it at all. What I should to to get both html and jade proper highlighting?

With all best regards. Anton.

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\Marcio Costa\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:550:9)
<unknown> (C:\Users\Marcio Costa\AppData\Local\atom\app-0.190.0\resources\app\src\package.js:172:43)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\geenhenk\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:565:9)
<unknown> (C:\Users\geenhenk\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:187:43)

(( Generated through Atom ))

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\Renia\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:565:9)
<unknown> (C:\Users\Renia\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:187:43)

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:565:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:187:43)

Add inline php syntax

Can you please add inline php syntax to this package? I'll very appreciate it !!! Thank you for reading this

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (C:\Users\HobanD\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:565:9)
<unknown> (C:\Users\HobanD\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:187:43)

Changing variable bracket color

I noticed that the #{} bracket starts out red, as shown below:
before

but once the bracket is closed, it changes to green:
after

Is this is a bug or on purpose? If it's on purpose, what's the best way to keep the original red color? Coming from MacVim, I'm a big fan of the red:
vim

Package.loadSettings is deprecated.

Store package settings files in the settings/ directory instead of scoped-properties/

Package.loadSettings (/Applications/Atom.app/Contents/Resources/app/src/package.js:565:9)
<unknown> (/Applications/Atom.app/Contents/Resources/app/src/package.js:187:43)

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.