Giter Site home page Giter Site logo

make it support for qss about vim-css3-syntax HOT 4 CLOSED

hail2u avatar hail2u commented on September 27, 2024
make it support for qss

from vim-css3-syntax.

Comments (4)

leycec avatar leycec commented on September 27, 2024 1

@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.

xyz1001 avatar xyz1001 commented on September 27, 2024

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.

hail2u avatar hail2u commented on September 27, 2024

I donโ€™t want to support CSS-like something anymore. You can write your own plugin like VIM-LESS.

from vim-css3-syntax.

mxaddict avatar mxaddict commented on September 27, 2024

@leycec thanks for that idea ๐Ÿ—ก๏ธ

from vim-css3-syntax.

Related Issues (20)

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.