Skip to content

jekyllex/editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JekyllEx Editor

This is a lightweight web-based code editor designed to enhance the file editing experience on the JekyllEx android app.

The editor is embedded in the app with a native JavaScript bridge to allow communication - loading files into the editor and saving edits back to the file system.

It uses a forked variant of the Prism.js Live beta library & a few plugins to provide:

  • Usable real-time syntax highlighting.
  • Multiple customizable themes.
  • Debounced saving, with the option to control timeouts.
  • Lazy loading of language sets to enhance markdown code blocks editing.

The editor supports the following query params:

  • theme: The ID (0 through 7) of the theme to load in the editor. Defaults to 0.
  • timeout: The time in milliseconds to wait before calling the IOBridge callback that saves text. Defaults to 1000.
  • lang: The shortname of the default language to be used for syntax highlighting. Defaults to rb. For jekyll flavored markdown, use md.

Previews

The editor supports the following themes:

One Light

One Light

One Dark

One Dark

Duotone Dark

Duotone Dark

Duotone Space

Duotone Space

Coldark Cold

Coldark Cold

Coldark Dark

Coldark Dark

Solarized Light

Solarized Light

Tomorrow Night

Tomorrow Night

License

This project is MIT licensed.

MIT License

Copyright (c) 2021 Prism Live
Copyright (c) 2024 Gourav Khunger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Prism.js Live based code editor that powers the JekyllEx android app

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •