Skip to content

Instantly share code, notes, and snippets.

View eldhosejoys's full-sized avatar
😊
rethinking the code

eldhose eldhosejoys

😊
rethinking the code
View GitHub Profile
@eldhosejoys
eldhosejoys / codemirror.html
Created August 13, 2019 17:53
Code Mirror Textarea Highlighter
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/dracula.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/mode/css/css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/mode/xml/xml.min.js"></script>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("textarea"), {
@eldhosejoys
eldhosejoys / jodit-editor.html
Created August 13, 2019 07:33
jodit editor setup
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jodit/3.2.54/jodit.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jodit/3.2.54/jodit.min.js"></script>
<script>
var editor = new Jodit("#textarea", {
"autofocus": true,
"iframe": true,
"textIcons": true,
"toolbarButtonSize": "small",
"saveModeInStorage": true,
@eldhosejoys
eldhosejoys / footer link
Created June 27, 2019 06:54
HTML code for adding a simple footer link on a web page. You can edit the href content with your prefered URL. And you can also change the footer text.