Giter VIP home page Giter VIP logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
grammr at http://docs.python.org/ref/grammar.txt

Original comment by [email protected] on 23 Apr 2008 at 5:58

  • Changed state: Accepted

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
@r38

Original comment by [email protected] on 5 Jul 2008 at 4:04

  • Changed state: Fixed

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
This appears to be considered fixed, but I just started using it and find that 
it's confused by single quotes (') inside of pythons triple-quoted doctrings. 
For example:

def testFunc():
    '''
    This is the function's docstring.
    '''
    return 1+2

Original comment by [email protected] on 23 Nov 2010 at 11:43

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#py
thon_lang seems to work.

Are you specifying that the content language is python?

<pre class="prettyprint lang-py">
def testFunc():
    '''
    This is the function's docstring.
    '''
    return 1+2
</pre>

Original comment by [email protected] on 1 Dec 2010 at 4:39

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
Not sure if there was a recent regression, but the following code block does 
not work with the current SVN trunk files:

<pre class="prettyprint"><code class="language-python">
import this
""" This is a standard Python triple quoted string
And all " found inside it are still part of
the string and should not be prettified as something else
"""
</code></pre>

Original comment by [email protected] on 30 Sep 2011 at 8:59

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
OK, found it. "lang-py" instead of "lang-python". Sorry for the noise.

Original comment by [email protected] on 30 Sep 2011 at 9:06

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 23, 2024
No problem.  As a rule of thumb, I try to make sure that lang-<file-extension> 
works instead of requiring everyone to come up with their own 
file-name-extension->language-name map.

Original comment by [email protected] on 3 Oct 2011 at 6:26

from code-prettify.

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.