Giter VIP home page Giter VIP logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
What if a verylarge <pre> tag was broken into a series of smaller <pre> tags?  
Your
continuation logic would keep the brower responsive, but the source code in 
blocks
other than the first might be incorrectly highlighted, e.g., if the preceeding 
<pre>
started a block comment and a multi-line string.

Maybe one way to address that would be for prettyPrintOne() to also accept a
reference to the next element that will be worked on (not the source code text 
of
that element).  Then, prettyPrintOne() could store a little momento of it's 
state in
some field of that next element, and that state could be restored when
prettyPrintOne() begins to operate on the next element.

Original comment by [email protected] on 20 Oct 2007 at 1:03

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
It'd require a serious rewrite if I wanted to allow the <pre> to be interrupted 
in
the middle of a token.

It would be nice to be able to skip over line number markers (in mondrian) but 
there
are other ways to do that.

How finely grained were you thinking of making these splits?

Original comment by [email protected] on 23 Oct 2007 at 4:54

from code-prettify.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 26, 2024
closing for lack of response

Original comment by [email protected] on 5 Jul 2008 at 10:14

  • Changed state: WillNotFix

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.