Code Monkey home page Code Monkey logo

code-editor's Introduction

code-editor

html document that uses code mirror to create a convenient code editor with changable themes and languages

##usage

###gh-pages:

  • ztaylor54.github.io/code-editor hyper
  • bookmark it with your favorite theme selected

###local install:

  • install Node.js
  • git clone https://github.com/ztaylor54/code-editor.git
  • cd code-editor
  • npm install to update dependencies
  • open code-editor.html and bookmark it

##dependency: code mirror

##screenshots: screenshot_1.png

screenshot_2.png

screenshot_3.png

code-editor's People

Contributors

ztaylor54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

code-editor's Issues

clike languages require extra parameters

The change() function needs to make another selection element visible when clike is selected, or the editor will not perform any syntax highlighting.
The parameters for each language are as follows:

Language Script
C mode: "text/x-csrc"
C++ mode: "text/x-c++src"
Java mode: "text/x-java"
Obj C mode: "text/x-objectivec"
Scala mode: "text/x-scala"
Kotlin mode: "text/x-kotlin"
Ceylon mode: "text/x-ceylon"

So I need a selection element that will show up when the clike option is selected, and execute the appropriate mode selection when a language is selected

normalize.css and docs.css missing from node_modules

The npm dependencies are missing docs.css and normalize.css.
Errors:

file:///C:/Users/Zachary/Documents/GitHub/code-editor/node_modules/normalize.css/normalize.css 
Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///C:/Users/Zachary/Documents/GitHub/code-editor/node_modules/codemirror/doc/docs.css  
Failed to load resource: net::ERR_FILE_NOT_FOUND

Host on GitHub Pages

You can host the latest version on GitHub Pages by:

  1. Creating a branch named gh-pages
  2. Changing the default branch to gh-pages
  3. Renaming code-editor.html to index.html
  4. Deleting .gitignore

This is just a suggestion, but it would make the tool much more useful.

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.