All Projects → editor-js → inline-code

editor-js / inline-code

Licence: MIT license
Inline-Code Tool for Editor.js 2.0

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to inline-code

link
Link Tool for Editor.js 2.0
Stars: ✭ 61 (+90.63%)
Mutual labels:  codex, codex-editor
simple-image
Simple Image Tool for Editor.js 2.0
Stars: ✭ 36 (+12.5%)
Mutual labels:  codex, codex-editor
Hackide
hackIDE is an online code editor, compiler and interpreter based on Django, powered by HackerEarth API! Go, hack it!
Stars: ✭ 242 (+656.25%)
Mutual labels:  code
CPPNotes
【C++ 面试 + C++ 学习指南】 一份涵盖大部分 C++ 程序员所需要掌握的核心知识。
Stars: ✭ 557 (+1640.63%)
Mutual labels:  code
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
Stars: ✭ 381 (+1090.63%)
Mutual labels:  code
Arrow Meta
Functional companion to Kotlin's Compiler
Stars: ✭ 246 (+668.75%)
Mutual labels:  code
ggshield
Find and fix 360+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations.
Stars: ✭ 1,272 (+3875%)
Mutual labels:  code
Img2poem
Stars: ✭ 238 (+643.75%)
Mutual labels:  code
slm-code-generation
TensorFlow code for the neural network presented in the paper: "Structural Language Models of Code" (ICML'2020)
Stars: ✭ 75 (+134.38%)
Mutual labels:  code
tryhackme-ctf
TryHackMe CTFs writeups, notes, drafts, scrabbles, files and solutions.
Stars: ✭ 140 (+337.5%)
Mutual labels:  code
vuejs-medium-editor
A medium like text editor for vue js WYSIWYG
Stars: ✭ 112 (+250%)
Mutual labels:  code
Dashi
💯 Get a notification in Slack every time someone asks you to check some code on Github or Bitbucket.
Stars: ✭ 29 (-9.37%)
Mutual labels:  code
Change Detection Review
A review of change detection methods, including codes and open data sets for deep learning. From paper: change detection based on artificial intelligence: state-of-the-art and challenges.
Stars: ✭ 248 (+675%)
Mutual labels:  code
Code-Life
The marathon continues though.
Stars: ✭ 27 (-15.62%)
Mutual labels:  code
Awesome Carla
👉 CARLA resources such as tutorial, blog, code and etc https://github.com/carla-simulator/carla
Stars: ✭ 246 (+668.75%)
Mutual labels:  code
static-hands
⌨️🤯 Stop moving hands, and start code fast ⚡⚡
Stars: ✭ 36 (+12.5%)
Mutual labels:  code
Axocover
Nice and free .Net code coverage support for Visual Studio with OpenCover.
Stars: ✭ 237 (+640.63%)
Mutual labels:  code
list
List Tool for Editor.js 2.0
Stars: ✭ 40 (+25%)
Mutual labels:  codex-editor
vicopo
API HTTP et Script pour trouver les villes à partir d'un code postal et code postaux à partir d'une ville
Stars: ✭ 27 (-15.62%)
Mutual labels:  code
tokei-pie
Render tokei's output to interactive sunburst chart.
Stars: ✭ 138 (+331.25%)
Mutual labels:  code

InlineCode Tool

Inline Tool for marking code-fragments for the Editor.js.

Installation

Install via NPM

Get the package

npm i --save-dev @editorjs/inline-code

Include module at your application

const InlineCode = require('@editorjs/inline-code');

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load specific version of package from jsDelivr CDN.

https://cdn.jsdelivr.net/npm/@editorjs/[email protected]

Require this script on a page with Editor.js.

<script src="..."></script>

Usage

Add a new Tool to the tools property of the Editor.js initial config.

var editor = EditorJS({
  ...
  
  tools: {
    ...
    inlineCode: {
      class: InlineCode,
      shortcut: 'CMD+SHIFT+M',
    },
  },
  
  ...
});

Config Params

This Tool has no config params

Output data

Marked text will be wrapped with a span tag with an inline-code class.

{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <span class=\"inline-code\">npm init</span> command."
    }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].