Giter VIP home page Giter VIP logo

codemirror-mode-elixir's Introduction

This repo (ianwalter/ianwalter) contains my personal website at https://ianwalter.dev.

Hi, I'm Ian! ๐Ÿ‘‹

I'm interested in organizing people around building extraordinary software. My experience allows me to understand complex software systems and team dynamics. Iโ€™ve helped build products that have served millions of people.

Currently, I'm the Director of Engineering for the Card group at Rocket Money. We're focused on building the best consumer credit card experiences in the world. We're also hiring if you're interested!

codemirror-mode-elixir's People

Contributors

leonya avatar pascalw avatar

Stargazers

 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

codemirror-mode-elixir's Issues

Remove the need to manually register

Hi there, thanks a bunch for putting this together. I was wondering, would you mind auto instantiating this mode with the CodeMirror instance similar to how the other modes work? Here is an example:

https://github.com/codemirror/CodeMirror/blob/master/mode/css/css.js#L10

The idea is, that all you need to do is include the mode after CodeMirror itself and it auto registers itself with CodeMirror. I'm doing this right now with the following small changes to your code:

(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory()(CodeMirror) :
  typeof define === 'function' && define.amd ? define(factory) :
  (global.registerElixirMode = factory()(CodeMirror));
}(this, (function () { 'use strict';
...

I'm guessing this code was originally generated by rollup. I'm thinking it might need a commonjs rollup config alongside the umd to accomplish this?

Thanks again :)

Add this mode to upstream CodeMirror directly

Dear Ian,

I was wondering why you haven't submitted it to CodeMirror itself.

The reason I ask is that I'm using CodeMirror indirectly. I'm using Atlassian Bitbucket Server (formerly Stash) at work. It embeds CodeMirror and uses it to display all code, including pull requests.

My job is to review pull requests, and we code in Elixir (yay!), so it would have been terrific to have Elixir support there. But Atlassian embed vanilla CodeMirror and there is no Elixir support there :(

There is an issue about it in their issue tracker:

https://jira.atlassian.com/browse/BSERV-10181

I can help you with anything related.

Can you (we) do something to help it?

Thanks! ๐Ÿ™

Uncaught error when loading UMD bundle

After upgrading from 1.1.1 to 1.1.2 I receive the following error when loading the UMD bundle (dist/codemirror-mode-elixir.umd.js):

Uncaught TypeError: Cannot read property 'defineMode' of undefined
    at elixir.js:1
    at elixir.js:1
    at elixir.js:1

The issue seems to be that the new version tries to access global.codemirror whereas the old version used global.CodeMirror.

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.