Comments (4)
You should always see how Scite handle these.
from notepad2-mod.
SciTE appears to handle these correctly. Pseudo-classes and pseudo-elements get (very slightly) different colors, while invalid pseudo-classes and invalid pseudo-elements are both clearly highlighted as "unknown".
from notepad2-mod.
According to MDN, :after
and :before
is CSS2 syntax and has better compatibility. Calling ::after
more "correct" than :after
is ... interesting. They are just different specs. CSS2 is still valid and correct.
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements
Nevertheless, I am currently working on a fix for this since you're correct that it should support the CSS3 syntax for pseudo-elements. I should be done with the patch within an hour (I'm just doing some research first). I'll just add it to my current Pull Request.
from notepad2-mod.
I'm not aware of any industry where older standards are considered "more correct" than newer standards, so yes, I'd call CSS3 syntax "more correct" than CSS2 syntax. Also, since the only browser with statistically significant market share that doesn't support the CSS3 syntax is Internet Explorer 8 -- which is currently at about 8 or 9% and on a steady decline -- I'd call any compatibility issues negligible.
from notepad2-mod.
Related Issues (20)
- Can add syntax highlighting for Golang ?
- Support font ligatures
- Cannot load project in VSStudio 2017
- Keep previously used search term HOT 1
- Do you have plans to create plug-ins system?
- suggest : execute open file HOT 2
- This is a program translation notepad2 To Arabic تعريب برنامج المفكرة2 HOT 3
- Add a option "file associations",please HOT 2
- "short" is not a javascript keyword HOT 4
- Retain zoom setting from session to session HOT 1
- Please add a hyperlink function thanks
- Multiple Selection
- Expose Scintilla's word part left/right hotkeys
- Better wrapping for long links HOT 4
- Create or open new file without closing old one? HOT 2
- Manual?
- After Word Wrap view is not focused to the cursor HOT 2
- Can you add DirectWrite font render feature? HOT 3
- any plan on i18n ? HOT 1
- Does not open files on file share through VPN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notepad2-mod.