Giter Club home page Giter Club logo

code-editor's Introduction

Code Editor

The Code Editor is a Standard Notes derived editor that provides syntax highlighting and keyboard shortcuts for over 120 programming languages.

Ideal for code snippets and procedures!

Quickstart

Use your browser to see the Code Editor in action.

  1. Clone the code-editor repository from GitHub.

  2. Run yarn to install required dependencies.

  3. Open index.html in your browser where the editor will be running.

Local Installation

See the editor in the desktop app and make changes to the code.

  1. Clone the code-editor repository from GitHub.

  2. Run yarn to install required dependencies.

  3. Ensure that either the Standard Notes desktop app is available for use or the web app is accessible. Use both locally or with an Extended account (or the extension will not load).

  4. Follow the instructions here to setup the extension locally.

  5. Begin development! Upon making any changes to the code, run yarn build to build the files to the dist folder.

Contributing

Feel free to create a pull request, we welcome your enthusiasm!

Support

Please open a new issue and the Standard Notes team will take a look as soon as we can. For more information on editors, refer to the following link:

We are also reachable on our forum, Slack, Reddit, Twitter, and through email:

  • Standard Notes Help and Support: Get Help

License

GNU AGPL v3.0

code-editor's People

Contributors

bryvin avatar gshakhn avatar johnny243 avatar moughxyz avatar ningsongshen avatar theodorechu avatar tjrana avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

code-editor's Issues

No scrollbar in Code editor

The scrollbar does not display when using the Code Editor, regardless of language selected. Behavior is consistent whether the note is converted from the Plain Editor, or started fresh with Code Editor as default.

Code editor syntax highlighting doesn't work for 'Rust'

When selecting 'Rust' as the language in the Code editor, there is no syntax highlighting.
Example from web demo app.

rust example, cropped

The error TypeError: CodeMirror.defineSimpleMode is not a function is shown on the console.

(The same issue occurs in the Windows desktop app)

markdown - comments are treated as headings in code block

When I write comment in a code block, the editor renders it like it was a heading in Markdown

image

I think that markdown formatting should not happen inside a code block.

There is a workaround if text is appended right after the comment with no spaces
image

reStructuredText - no syntax highlighting

I write documentation in Sphinx using reStructuredText. While researching about a question or issue, I will make notes, and then copy that information over to the documentation once an initial version is complete.

I thought I would try and use the Code Editor to store some of these reST snippets. However, it appears there is limited/buggy syntax highlighting. The highlighting does not match that of Atom or Sublime Text.

Is this a known issue?

Feature suggestion: allow changing code editor font size

Some may find the code editor font size too small. Ctrl + increases the font for the entire interface which is undesirable.

It would be great to have an option in settings near the place where we set the default editor to specify the font-size if the editor is the code editor.

Thanks

Code editor issue on Android/iOS

On Android with vim mode disabled if I long press the text I only get the "Paste" and "Select All" options; so no "Copy" or the ability to select some text in the editor.

On iOS with vim mode disabled if I long press the text I get no options at all - although on rare occasions I get the carets that allow me to copy a portion of the text.

Latest iOS, Android 11

Thanks

Vim mode for Code Editor doesn't seem to work well on Android

Vim mode for Code Editor doesn't seem to work well on Android (though it works on iOS). It doesn't work properly on my Android phone and tablet, but it works on the tablet if I connect its Samsung hardware keyboard. The issue is basically that whatever I type is just ignored. If I type "i" to enter insert mode or "/" to search, it doesn't do anything and the software keyboard seems to believe I'm entering a word (as it keeps adding to the suggested word at the top). Is this a known issue?

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.