Saturday, January 23, 2010

KDevelop/Quanta4 Css Language Support

I'm currently working on a important part of Quanta4, Css Language support. The only thing supported for now is code completion for standalone css files:


But that is the most useful feature a Web IDE can have.


Still on my todo list is:
  • validation (should be easy with the existing parser)
  • Outline navigation (should be not that hard either)
  • Support <style> tags and inline styles in html files
A few notes on how I implemented the plugin:
  • I reused WebKit's flex lexer
  • then wrote a parser using kdevelop-pg-qt based on WebKits bison grammar. A major difference is that it successfully parses incomplete Css - as it is during writing in the editor.
  • The code completion parses the file on invocation and goes through the Ast (resulting from the parser) to find the correct type to show.
  • Then, using an XML file borrowed from Aptana's code assist, the shown completion items are determined.

How to test (feedback is very welcome!)
  • install kdevelop
  • install trunk/playground/devtools/kdevelop4-extra-plugins/css
Ruan recently recently announced on kdevelop-devel that he will work on html/xml language support. There is hope for Quanta4!

56 comments:

  1. This is awesome news! Thank you so much for your efforts to make KDevelop get Quanta's capabilities. I hope it will all go well. :)

    mutlu

    ReplyDelete
  2. great news...I hope ...I hope... :)

    ReplyDelete
  3. Hey Niko, I just tried to install it from SVN and got:

    Scanning dependencies of target kdev4cssparser_automoc
    Scanning dependencies of target kdevcsslanguagesupport_automoc
    Scanning dependencies of target css-parser_automoc
    [ 0%] Generating csslanguagesupport.moc
    Built target kdev4cssparser_automoc
    make[2]: Circular parser/tokenizer.flex <- parser/tokenizer.flex dependency dropped.
    make[2]: *** No rule to make target `parser/cssparser.h', needed by `parser/tokenizer.cpp'. Stop.
    make[1]: *** [parser/CMakeFiles/kdev4cssparser.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 0%] Built target css-parser_automoc
    Generating parsejob.moc
    Generating model.moc
    [ 0%] Built target kdevcsslanguagesupport_automoc
    make: *** [all] Error 2

    ReplyDelete
  4. Jakub, please update and try again.
    If it still, please fails post your cmake output.

    ReplyDelete
  5. Sounds like nice!

    Hmmm, i will test it (and wrote an live ebuild for gentoo).
    How i can get der sources (for quanta4)?

    Greeting from Hamburg!

    ReplyDelete
  6. @B.Schulz:
    Use KDevelop instead of Quanta; Quanta is not ready.

    ReplyDelete
  7. Hi Niko!
    KDevelop too ...
    Its not an HTML/PHP Developer-Framework. anyway, not for me.

    But i have an basic-functionaly ebuild for gentoo.
    I think thats open quanta for a lot of testing-people. :)

    ReplyDelete
  8. I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards

    ReplyDelete
  9. Thanks this new support tool is great.

    ReplyDelete
  10. There any news about the plugin for html / css?

    SALUDOS!!!

    ReplyDelete
  11. @bernardino:
    absolutely, milian is working during this GSoC on it, for updates read his blog: http://milianw.de/blog

    ReplyDelete
  12. hi I am an engineer and I was working on Quanta4, but I had several problems and I didn't have so much time to solve them so I quit it and tried another software, but what you have here may help me to sole those old problems, thank you!

    ReplyDelete
  13. I'm loving this article! I'd like to let you know that this custom essay service is one of the best chances to improve your English grammar! Keep it up!

    ReplyDelete
  14. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant .i love it reading.
    Obat Pendarahan Otak Kecil

    ReplyDelete
  15. I’m glad I found your article. I would never have made sense of this topic on my own. I’ve
    read a few other articles on this subject, but I was puzzled right
    up until I read yours. I has some good article to share with you.. Check List Here Obat Diabetes Basah Luar Dalam

    ReplyDelete
  16. JBN Creators is dedicated to provide all-in-one eCommerce websites for your store. Here we are ready to provide you optimum support in terms of improving your business and expanding the horizon. We invite you to make use of our optimum resources so as to meet the business goal at the earliest.
    Website Designing

    ReplyDelete
  17. Nice information. Thanks for sharing such an amazing article. For Latest Hindi News and updates please visit our website: TV9 Bharatvarsh Media News

    ReplyDelete
  18. It will be very grateful to get website design service from you.
    Website design Hemel Hempstead

    ReplyDelete
  19. Thanks for this share.Are you looking to optimize your blog. We are a Seo Firm Bangalore.Our Senior SEO Consultant has a 10+ years of experience, offers services like SEO, PPC, SMM, online reputation management & web development both to small and medium companies. As a running offer, we are providing free performance audit for our customers.

    ReplyDelete
  20. Thanks for your post! Really interesting blogs. Here is the some more interesting and most related links.

    Best digital marketing company in Dubai, United Arab Emirates. Brandstory is one of the top and best digital marketing companies in Dubai UAE. As a leading digital marketing agency in Dubai, We offer search engine optimization services, online marketing services, UI UX design services, search engine marketing services, email marketing services, Google / Facebook / Bing pay per click services, Internet marketing services, website design services and website development services, social media marketing services. Hire ROI based digital marketing services company in dubai to get digital leads for your business.

    Digital marketing company in Dubai | Digital Marketing Agency in Dubai | SEO Company in Dubai | SEO Agency in Dubai | Best Digital Marketing Companies in Dubai | Top Digital Marketing Agencies in Dubai | Best SEO Companies in Dubai | SEO Agencies in Dubai | Online Marketing Company in Dubai | SEO Services Company in Dubai | PPC Company in Dubai | PPC Agency in Dubai | PPC Services in Dubai | Social Media Marketing Company in Dubai | Social Media Marketing Services in Dubai | Social Media Marketing Agencies in Dubai | Web Design Company in Dubai | Website Designers in Dubai | Website Development Services Company in Dubai | Web Design Companies in Dubai

    ReplyDelete
  21. SIAUAE is one of the top audit firms in UAE with highly experienced professionals. As a leading Audit Firms in UAE , we achieved the label of best tax consultant in UAE.Our CA services Will help you.

    We providing the best VAT consultancy services in UAE .As a leading VAT Consultants in UAE , we achieved the label of best VAT consultant in UAE.

    Looking for the top accounting firms in UAE? SIAUAE is the best Accounting Firms in UAE , we offer comprehensive professional services in UAE.

    SIAUAE management consultancy is a professional Management Consultancy UAE , Helping clients achieve their business goals. For more details call us now.

    ReplyDelete
  22. Good Blog, thanks for sharing
    Today the companies are continually being challenged to reduce the expenses, most of working expenditures and other requirements. The main costs include the salary of employees like HR professional, accountant, auditors and administration. These problem can be overcome by best expert business outsourcing company. They provide quality and valuable services at low cost for the business enterprises. In UAE most of accounts payable outsourcing companies offers cost effective accounting services that will help the companies effectively in the current situation.
    Audit firms in UAE

    ReplyDelete
  23. Good Blog, thanks for sharing
    the intensity of smells can't be exaggerated. Smell has such a solid association with one's passionate express that it revives the recollections that went with our experience, in a few occasions, returning over numerous years. A deliberately built fragrance can lift one's state of mind, and places one out of a positive and innovative outlook. Our fragrance arrangements give you a chance to make the ideal experience for your customers and associates – one in which they remain drew in and associated.
    Aroma diffuser

    ReplyDelete
  24. Good Blog, thanks for sharing
    everybody want digital marketing company Kerala to have their organization on the highest point of the pursuit list and engage your business. We Provide Best Digital Services, Efficiently total start to finish center abilities without viable thoughts. Powerfully cultivate strategic arrangements without empowered worth. Interfacing your business to the clients who are keen on your administration, and make a chain of best digital marketing in Kochi.
    Digital marketing company Kerala

    ReplyDelete
  25. Graphic Bunnies is a UI UX Design & Marketing Agency based on Bhopal, India. They work in the field of Design, strategy and marketing.

    ReplyDelete
  26. ISO Certification in Delhi – Genveritas a global ISO Certification Consulting firm represents considerable authority in tweaked and result-situated answers for assisting organizations to actualize change and improve business execution.

    Neuro Doctors are a cohesive group of Top Neurosurgeon in Bangalore Neurologists, Intervention Neuroradiologist, pain management specialists who work together to provide comprehensive neurosciences care to our patients.

    KEEN SEO Agency – Best Web Design Company in Bangalore . We provide full-service Web Design & Development Solutions that also includes specialized SEO services for Small Businesses. We offer Strategist Local SEO, Ecommerce SEO, website auditing, Paid Search (PPC) strategies including Google Ads, Facebook & Linked In Ads for Small Business (B2B & B2C).

    ReplyDelete
  27. Our Technical Team is the family of the skilled and professional team who ensures that the customers get the most reliable services. We are providing the AOL Email Supports in all across the United States. For more informattion dial out customer care toll-free number or visit our website:
    General AOL Mail Not Working Issue
    Change AOL Mail Password
    Recover AOL Mail Password
    Forgot AOL Mail Password
    Download AOL Desktop Gold
    Instal AOL Desktop Gold

    ReplyDelete
  28. I appreciate your time invested on this article , too bad it took me this long to find it but as they simply sound out a good is hard to find. Keep it up.
    Here are the Best SEO Company in Bangalore|
    SEO Services Company In Bangalore|
    SEO Services In Bangalore|
    SEO Agency In Bangalore|

    ReplyDelete
  29. This blog gave well data with respect to web composition for clinical practice. The principle focus for website specialist is make a one of a kind plans for the page and that site page ought to be dazzled to who are visiting that site page. Hire PHP Developers

    ReplyDelete
  30. best hr software for medium business
    Thanks for sharing such an informational blog which will surely be a big help to the small medium enterprise so that they can choose the best suited tool for their business.

    ReplyDelete
  31. Thanks for Sharing. We are well-known as seo company in dubai that provides the best SEO solutions for your business

    ReplyDelete
  32. Thanks for sharing. Bedigitech is well-known Digital Marketing Services in India. Our digital marketers can assist you in achieving the greatest level of online exposure and visibility.

    ReplyDelete
  33. I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful.
    List of Top Engineering Colleges in Bhopal

    List of Top Engineering Colleges in Gwalior

    List of Top Engineering Colleges in Indore

    List of Top Engineering Colleges in Jabalpur

    List of Top Engineering Colleges in Ujjain

    ReplyDelete