GithubHelp home page GithubHelp logo

iros / deck.js-codemirror Goto Github PK

View Code? Open in Web Editor NEW
107.0 107.0 22.0 510 KB

CodeMirror extension for deck.js

Home Page: http://ireneros.com/deck/deck.js-codemirror/introduction

License: MIT License

CSS 6.82% JavaScript 93.18%

deck.js-codemirror's People

Contributors

anks avatar groovecoder avatar iros avatar jrunge avatar tbranyen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deck.js-codemirror's Issues

Need better walkthroughs

Hi. I'm the guy from Ignite yesterday who had glitches setting this project up completely. (Here's the presentation I was using it for; I never quite got the syntax highlighting to work. The Scala-on-Android framework it describes is here if you're curious.)

As I said, I always feel funny about vague bug reports like this; fix it and I definitely owe you lunch...

Multiple cursors on a ipad mini retina

trying to edit js code on the example deck, i get multiple cursors, even, sometimes, in the gutter. I don.t know if this is specific to the ipad or generic to all the touch interfaces.

html highlighting support

What do you think about adding support for html highlighting? I'm guessing a lot of presentations have some markup to show to go along with JavaScript.

Doc issue: do I have to init or not?

Between your readme and your code, I'm a little confused. Do I need to set codemirror options inorder to use this extension? Or does Codemirror "just work" when it's included as you show in the README?

For example, do I need to specify the theme, or does the Codemirror CSS do the right thing?

Allow override of parent element...

... to which the codeMirror elements will be attached. Right now goes for parent element of the code container. Could be anywhere else on the page I suppose.

Styling issues with deck.js's "web 2.0" theme

Just installed your extension and it looks like the "web-2.0" theme of deck.js doesn't play nice with codemirror styles. There may not be much you can do about it short of hacking in some CSS to undo "web-2.0" styling where codemirror styles are present. But I just wanted to bring it to your attention..

deckjscodemirrorbug

JavaScript 'less than' and 'greater than' are converted to HTML entities

Here is the code I'm feeding into deck.js-codemirror:

      <h3>1.js</h3>
      <div name="code" class="code" mode="javascript" style="display: none;">function fib(n) {
    var i;
    var a = 0, b = 1, sum = a + b;
    for (i = 0; i < n - 1; i++) {
        sum = a + b;
        a = b;
        b = sum;
    }
    return sum;
}

module.exports.fib = fib;</div>
  </div>

The resulting display is (note the less-than operator in the iterator):

function fib(n) {
    var i;
    var a = 0, b = 1, sum = a + b;
    for (i = 0; i &lt; n - 1; i++) {
        sum = a + b;
        a = b;
        b = sum;
    }
    return sum;
}

module.exports.fib = fib;

Am I doing something wrong or is this a bug?

runnable r code mirror

Dear all,

I discovered this project yesterday. I have to say - I am absolutely fascinated by the possibility to include code mirrors into my presentation and moreover to evaluate them. This is great opportunity for teaching new programming languages to students.

Here is my question: As I mostly teach R, is there anyway get R codemirrors runnable like in the javascript examples?

Thank you some much for this great project.
Best, Lukas

Codemirror inclusion breaks printing style

The default introduction set of slides prints fine, but when you include codemirror it only seems to be able to find the first slide.

Whatever css is being included that breaks the printing functionality present in the base deckjs needs to be removed in print mode.

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.