Giter Site home page Giter Site logo

Comments (2)

kmckee avatar kmckee commented on June 14, 2024

Or, perhaps the data-code-focus string just becomes a little more complex instead:

<p class="fragment" data-code-focus="1[4-13]">
  Commentary on initializer goes here
</p>

1[4-13] = Columns 4 thru 13 on row 1

from reveal-code-focus.

bnjmnt4n avatar bnjmnt4n commented on June 14, 2024

This seems like a useful feature - but we'll have to rework a lot of the internals and the CSS styling. Currently we just wrap each line with a <span>, and do minimal work on the HTML to avoid messing up highlight.js's own <span> tags. To enable selective highlighting of specific ranges, we'll have to figure out a clean and minimal method of detecting tags and opening them where necessary to avoid overlapping.

from reveal-code-focus.

Related Issues (19)

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.