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 (http://genshi.edgewall.org/), and to keep things easily maintainable, I also use a Javascript-based template language called jQote2 (http://aefxx.com/jquery-plugins/jqote2/).  This results in (included) XHTML template files that can look something like this:

<div id="${id}"

     xmlns="http://www.w3.org/1999/xhtml"

     xmlns:py="http://genshi.edgewall.org/"

     xmlns:i18n="http://genshi.edgewall.org/i18n"

     xmlns:xi="http://www.w3.org/2001/XInclude"

     >

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


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

<![CDATA[

<% var data = this; %>

<li >

  <div>

    <span  />

    <span

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

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

    </span>

  </div>

</li>

]]>

  </script>

</div>

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 http://youtrack.jetbrains.com/issue/PY-1031 regarding Genshi support and file a new issue for jQote2.

0

Please sign in to leave a comment.