Comments (4)
@xyz1001 Doing so should be trivially feasible. While untested, inserting the following lines towards the start of your ~/.vimrc
file should theoretically work:
augroup my_filetype_detect
autocmd!
" Associate filetype ".qss" with CSS mode.
autocmd BufNewFile,BufRead *.qss setfiletype css
augroup END
That said, note that Qt StyleSheet (QSS) syntax only superficially resembles Cascading Style Sheet (CSS). There are substantial differences, both above and below the hood. In other words, attempting to force Vim to parse the former as if it were the latter may horribly blow up your entire life. ๐ฃ
Ideally, vim-css3-syntax
would add explicit support for QSS at some point. Or is it that unthinkable heresy, @hail2u?
from vim-css3-syntax.
I'm a Qt developer and I have to write .qss file, which has the same sytax with CSS. Counld you tell me how to make this plugin work with .qss file? any help would be appreciated.
from vim-css3-syntax.
I donโt want to support CSS-like something anymore. You can write your own plugin like VIM-LESS.
from vim-css3-syntax.
@leycec thanks for that idea ๐ก๏ธ
from vim-css3-syntax.
Related Issues (20)
- fit-content() function is not highlighted correctly
- Some CSS functions not highlighted correctly HOT 1
- cssnext support? HOT 1
- Distribute as Vim 8.0 package HOT 2
- `system-ui` font family
- Extremely slow on startup HOT 2
- touch-action property
- Makes file very slow to open HOT 1
- flex-grow not highlighted HOT 1
- ease-in-out not highlighted HOT 1
- Highlight for nested properties? HOT 2
- WebVTT ::cues HOT 1
- Incorrect highlighting for: space-{around|evenly|between} and ease-in-out HOT 4
- space-between not highlight HOT 1
- (Optional) support for nested selectors HOT 4
- Submit these improvements as PRs to the official Vim CSS syntax file HOT 1
- Inline styles syntax highlight HOT 1
- master -> main HOT 1
- Color preview is also applied to CSS property names HOT 2
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 vim-css3-syntax.