All Projects → ashubham → markee

ashubham / markee

Licence: MIT License
Visual text selection

Programming Languages

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

Projects that are alternatives of or similar to markee

Web Highlighter
✨ A no-runtime dependency lib for text highlighting & persistence on any website ✨🖍️
Stars: ✭ 373 (+1595.45%)
Mutual labels:  selection, highlight
ng-caret-aware
AngularJS directive for caret aware elements
Stars: ✭ 12 (-45.45%)
Mutual labels:  caret, cursor
web-marker
a web page highlighter - Please star if you like this project
Stars: ✭ 51 (+131.82%)
Mutual labels:  selection, highlight
toggler
Atom plugin - Toggle words and symbols
Stars: ✭ 21 (-4.55%)
Mutual labels:  selection, cursor
MarkMe
WIP - A simple, lightweight and beautiful Markdown editor and viewer.
Stars: ✭ 26 (+18.18%)
Mutual labels:  highlight
macOS-cursors-for-Windows
Tested in Windows 10 & 11, 4K, 125%, 150%, 200%. With 2 versions, 2 types and 3 different sizes!
Stars: ✭ 578 (+2527.27%)
Mutual labels:  cursor
chalk
🖍️🎨Composable and simple terminal highlighting package for OCaml.
Stars: ✭ 29 (+31.82%)
Mutual labels:  highlight
Selectable
Touch enabled selectable plugin inspired by the jQuery UI widget.
Stars: ✭ 131 (+495.45%)
Mutual labels:  selection
FancyAdapters
A collection of customizable RecyclerView Adapters for Android, that provide various functionality like item selection, contextual action mode controls, drag&drop and swiping, among other.
Stars: ✭ 49 (+122.73%)
Mutual labels:  selection
KoHighlights
KOHighlights is a utility for viewing KOReader's highlights and/or export them to simple text, csv or html files.
Stars: ✭ 62 (+181.82%)
Mutual labels:  highlight
MultiLamp
Android library to showcase/highlight the multiple views on same overlay
Stars: ✭ 235 (+968.18%)
Mutual labels:  highlight
prism-pretty
A Chrome Extension to format/highlight/preview HTML/JS/CSS/Markdown code with Prism.js
Stars: ✭ 91 (+313.64%)
Mutual labels:  highlight
twitch-highlights-logger
Find interesting moments on a Twitch VOD
Stars: ✭ 22 (+0%)
Mutual labels:  highlight
QLColorCode
QuickLook plugin for source code with syntax highlighting.
Stars: ✭ 589 (+2577.27%)
Mutual labels:  highlight
Sux4J
Sux4J is an effort to bring succinct data structures to Java.
Stars: ✭ 119 (+440.91%)
Mutual labels:  selection
quickselect
A fast selection algorithm in JavaScript.
Stars: ✭ 73 (+231.82%)
Mutual labels:  selection
multi-cursor
🎉
Stars: ✭ 44 (+100%)
Mutual labels:  cursor
trueChart-Menubar4Sense
MENUBAR as visualization extension for Qlik Sense® allows for vertical and horizontal buttons and selections (fields, master dimensions and variables) as well as unlimited trigger based Actions. #trueChart #menubar #highcoordination
Stars: ✭ 19 (-13.64%)
Mutual labels:  selection
texthighlighter
a no dependency typescript npm package for highlighting user selected text
Stars: ✭ 17 (-22.73%)
Mutual labels:  highlight
fastener
Functional Zipper for manipulating JSON
Stars: ✭ 54 (+145.45%)
Mutual labels:  cursor

Markee

Build Status npm version

Features

  • Pure Javascript (Uses No JQuery or Frameworks).
    • But can be used with any.
  • Lightweight
  • Typescript (Types included).
  • Fully customizable using CSS.
  • Works in Chrome, Safari, IE, Firefox.

Simple usage

<div id="container"></div>
import Markee from 'markee';

let el = document.getElementById('input');
let markee = new Markee(el /* Target element */, {
	initialText: 'You can simply highlight, what you wish using these handles!',
	onMarked: (text, startIdx, endIdx) => {
        // Callback when some one changes the 
        // marked selection.
		console.log(text, startIdx, endIdx);
	}
});

Options

let markee = new Markee(el, {
    initialText: '',  // text to be made markeeable.
    startIdx: 0,      // Start of initial selection.
    endIdx: 1,        // End of initial selection.
    
    /* The callback which is called when a user changes the marked selection. */
    onMarked: (text: string,  // selected text.
        startIdx: number,     // index of the start.
        endIdx: number),      // index of the end.
    
    onDrag: (beginMarker: HTMLElement,
             endMarker: HTMLElement), // Called when a handle is dragged.
    
    markerClass: 'marker',      // CSS class for drag handle.
    tokenClass: 'token',        // CSS class for text token.
    beginClass: 'begin',        // CSS class for the begin marker.
    endClass: 'end',            // CSS class for the end marker.
    selectedClass: 'selected',  // CSS class for the marked selection.
    draggedClass: 'dragged',    // CSS class for the drag handle when being dragged.
})
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].