azat-io / atom-language-postcss Goto Github PK
View Code? Open in Web Editor NEW:atom: Atom language support for PostCSS
Home Page: https://atom.io/packages/language-postcss
License: MIT License
:atom: Atom language support for PostCSS
Home Page: https://atom.io/packages/language-postcss
License: MIT License
Hi there,
Not sure if this is the expected action, but if I toggle show invisibles
in sugarss settings, it enables that option globally (eg. the show invisibles
option gets checked in the general settings page)
An option to highlight .css
files would be a nice enhancement.
If you define a mixin like this:
@define-mixin square $dimension {
width: $dimension;
height: $dimension;
}
And you want to make use of it like:
.button {
@mixin square 200px;
}
The px
word appears as illegal character.
(Sorry for the sugass thing, ignore it)
Currently only specific font names are highlighted as fonts. All fonts should be highlighted as fonts.
I'll open a PR with this change later this week, I'm just making the issue now so I don't forget.
<div class="line cursor-line" data-screen-row="2">
<span class="source css postcss">
<span class="meta property-list postcss">
<span class="meta property-name postcss">
<span class="support type property-name postcss">font</span>
</span>
<span class="meta property-value postcss">
<span class="punctuation separator key-value postcss">:</span>
<span class="support constant property-value postcss">normal</span>
<span class="keyword other unit postcss">12px</span>
Segoe UI Semibold,
<span class="string quoted double postcss">
<span class="punctuation definition string begin postcss">"</span>
Segoe UI Semibold
<span class="punctuation definition string end postcss">"</span>
</span>,
<span class="string constant font-name postcss">monospace</span>
<span class="punctuation terminator rule postcss">;</span>
</span>
</span>
</span>
</div>
<div class="line cursor-line" data-screen-row="2">
<span class="source css postcss">
<span class="meta property-list postcss">
<span class="meta property-name postcss">
<span class="support type property-name postcss">font</span>
</span>
<span class="meta property-value postcss">
<span class="punctuation separator key-value postcss">:</span>
<span class="support constant property-value postcss">normal</span>
<span class="keyword other unit postcss">12px</span>
<span class="string constant font-name postcss">Segoe UI Semibold</span>,
<span class="string quoted double postcss">
<span class="punctuation definition string begin postcss">"</span>
<span class="string constant font-name postcss">Segoe UI Semibold</span>
<span class="punctuation definition string end postcss">"</span>
</span>,
<span class="string constant font-name postcss">monospace</span>
<span class="punctuation terminator rule postcss">;</span>
</span>
</span>
</span>
</div>
Hello, since I updated the plugin the autocomplete features of atom don't work anymore in my .sss files
I was using https://atom.io/packages/language-postcss-sugarss to support the sytax before you added your own support. I want to stick with your since it's not just a copy of sass language syntax support like does this plugin.
However because the scope of the grammar is source.postcss it causes issues with Emmet which is looking for .css to add the support. Could you change the syntax to .source.css.postss
or even .source.css.sugarss
(it's the one used by the plugin over) ? This should fix Emmet.
As for my snippets, I use .source.postcss
and it's not expanding anymore.
# SugarSS: section comment
'.source.postcss, .source.css.sugarss':
'Section comment':
'prefix': 'sec',
'body': """
/*!==================================================
#${1:}
================================================== */
${2:}
"""
A quick fix would be to use postcss sugarss plugin but yours is better in term of support and the syntax highlighting too. If you can fix this it would be great, thanks.
Now we have a very useful plugin for Atom 'PostCSS Syntax'. Any plans about a plugin for VS Code?
Anyway thanks in advance!))
If you chain enough :not()
selectors eventually the whole file will become improperly highlighted.
custom-elements-are-block.css
*:not(a):not(abbr):not(acronym):not(address):not(applet):not(area):not(article):not(aside):not(audio):not(b):not(base):not(basefont):not(bdi):not(bdo):not(bgsound):not(big):not(blink):not(blockquote):not(body):not(br):not(button):not(canvas):not(caption):not(center):not(cite):not(code):not(col):not(colgroup):not(command):not(content):not(data):not(datalist):not(dd):not(del):not(details):not(dfn):not(dialog):not(dir):not(div):not(dl):not(dt):not(element):not(em):not(embed):not(fieldset):not(figcaption):not(figure):not(font):not(footer):not(form):not(frame):not(frameset):not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(head):not(header):not(hgroup):not(hr):not(html):not(i):not(iframe):not(image):not(img):not(input):not(ins):not(isindex):not(kbd):not(keygen):not(label):not(legend):not(li):not(link):not(listing):not(main):not(map):not(map):not(mark):not(marquee):not(menu):not(menuitem):not(meta):not(meter):not(multicol):not(nav):not(nobr):not(noembed):not(noframes):not(noscript):not(object):not(ol):not(optgroup):not(option):not(output):not(p):not(param):not(picture):not(plaintext):not(pre):not(progress):not(q):not(rb):not(rp):not(rt):not(rtc):not(ruby):not(s):not(samp):not(script):not(section):not(select):not(shadow):not(small):not(source):not(spacer):not(span):not(strike):not(strong):not(style):not(sub):not(summary):not(sup):not(table):not(tbody):not(td):not(template):not(textarea):not(tfoot):not(th):not(thead):not(time):not(title):not(tr):not(track):not(tt):not(u):not(ul):not(var):not(var):not(video):not(wbr):not(xmp) {
position: relative;
display: block;
}
Things like html tags and css property/values are auto-completed both in CSS and Sass, but not in posts files using this syntax mode.
Is this something to be expected in the current implementation or some issue with my editor?
When this plugin is enabled, it seems to prevent CSS autocomplete from working. When I have a css file open and I am typing a property the autocomplete does not show suggestions for CSS.
body
bg[tab]
expands to
body
background: #000;
Is there a setting to remove the trailing semi-colon?
Thank you for this! Just noticed these...
Missing colorization for these CSS properties:
Missing colorization for these CSS values:
We should add to README.md instructions, how to switch default CSS highlighter to PostCSS, because many developers uses .css
.
There is very weak syntax highlighting (and broken for sugarss scopes in .vue files) and no autocomplete for SugarSS at all atm.
Is there any hope to see highlighting and autocomplete work how they work in Sass package?
directions on how to fix please?
Considering writing my own language support for Atom. But the looks of this repository it's no longer maintained. Does anyone know of an actively maintained fork?
@azat-io I noticed you added support for SugarSS in cf06c29…
Does that make my language-postcss-sugarss package obsolete?
Hi,
Today property recognition is hardcoded.
Is there any way to support defined properties across daleeidd/postcss-define-property ?
Hi,
The css autocomplete stops working after activating this package (working in a .css file)
The Syntax Highlighting works just fine, but now I have to type out everything in css by my own.
Is there a workaround?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.