Git Product home page Git Product logo

Comments (3)

spearce avatar spearce commented on May 8, 2024
When posting gitiles file-view URL's into bug reports, it would be very nice to be able
to link to an html anchor for the exact line I'm interested in.  Something like:

https://gerrit.googlesource.com/gitiles/+/master/gitiles-war/src/main/webapp/WEB-INF/web.xml#line20

Ideally, the html might look like this:

<li class="L9"><a name="line20"><a href="#line20"><span>...</span></a></a><br></li>

The <a href="#line20"> is just to make it easy to right-click and "Copy link address"

Reported by None on 2014-02-21 14:12:01

from gitiles.

spearce avatar spearce commented on May 8, 2024
I don't want to fork prettify.js, and eventually I want to move to CodeMirror. But I
think in the meantime it wouldn't be hard to do this by postprocessing every <li> within
the <pre class="prettyprint">. Not sure what the performance impact would be (though
considering we may already show a flash of unstyled <pre> this may be ok).

Reported by None on 2014-02-21 14:15:39

from gitiles.

spearce avatar spearce commented on May 8, 2024

Reported by None on 2015-06-23 22:41:06

from gitiles.

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.