Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Code syntax highlighting tool for Editor.js, Built with Codeflask

NotificationsYou must be signed in to change notification settings

calumk/editorjs-codeflask

Repository files navigation

Warning

This repo is depreciated / archived.

Important

Due to changes in the core editor (Change from codeflask -> codecup) I have decided to fork this repo, and depreciate it.

The Plugin originally relied onCodeFlask, which i have also forked, and republished asCodeCup

As such, the plugin is now different enough, that i have decided to republish it under its new name, so I can accept issues/pull requests on the whole stack, and maintain it better going forwards

Please upgrade to@calumk/editorjs-codecup


NPM

npm i @calumk/editorjs-codeflask

JS

https://cdn.jsdelivr.net/npm/@calumk/editorjs-codeflask@latest

About

This is an EditorJs wrapper forCodeFlask - A lovely lightweight zero-dep code formatter

It was built to be an improvement on :

Demo

Demo

Built with:


Installation / use

importEditorJSfrom'@editorjs/editorjs';importeditorjsCodeflaskfrom'@calumk/editorjs-codeflask';vareditor=EditorJS({// ...tools:{    ...code :editorjsCodeflask},});

Data Format

The data imported/exported from the block is as follows:

NameDescription
codeThe code that is displayed in the editor, with line breaks
language (optional)The programming language
showlinenumbers (optional)Will show/hide the line numbers (Default true) (WIP -Codeflask #132)

Since language and linenumbers are optional, existingcode blocks can safley use this plugin

About

Code syntax highlighting tool for Editor.js, Built with Codeflask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp