Best setup for Genshi and jQote2?

Dear PyCharm developer community,

I have been programming with Emacs for approximately 16 years, but I am kind of a newbie when it comes to PyCharm.  I have to admit that the more I use PyCharm, the more I appreciate many of its features, like the refactoring tools and its Javascript mode.  Thank you for making a great product.  However, I have a couple of questions that I hope someone here might help answer.

I am developing a Turbogears 2.1-based project with quite a lot of jQuery-based Javascript.  The Python-based XHTML template language is Genshi (, and to keep things easily maintainable, I also use a Javascript-based template language called jQote2 (  This results in (included) XHTML template files that can look something like this:

<div id="${id}"






  <a id="questions-tab-link" href="#"  py:content="_('Questions')" />

  <script type="text/x-jqote-template" id="entity-template">


<% var data = this; %>

<li >


    <span  />


         title="<%= data.description && data.description + ' '

                    || '' %>(<%= data.answer_type_name %>)"><%= %>







Now, is it possible to configure PyCharm so that it provides Javascript syntax highlighting and analysis within the jQote2 tags; that is between <% … %> and <%= … %>?  Furthermore, what is the optimal configuration for working with Genshi templates in general?  It seems PyCharm does not recognize the Genshi Python-escape codes; that is ${… python code …} and <… py:content="… python code …" />.

Has anyone had any luck with configuring PyCharm for such usage?  Any help would be appreciated.

1 comment
Comment actions Permalink

At the moment PyCharm does not provide any support for either Genshi or jQote2. You can vote for regarding Genshi support and file a new issue for jQote2.


Please sign in to leave a comment.