All Projects → TonPC64 → vue-highlight-text

TonPC64 / vue-highlight-text

Licence: MIT license
🔦 Vue component for highlight multiple instances of a word

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to vue-highlight-text

kirby-highlighter
🌐 Server-side syntax highlighting for the Kirby code block & KirbyText
Stars: ✭ 18 (-67.27%)
Mutual labels:  highlight
ng-walkthrough
A walkthrough for Angular
Stars: ✭ 21 (-61.82%)
Mutual labels:  highlight
geshi-1.1
Next generation of Generic Syntax Highlighter for PHP
Stars: ✭ 70 (+27.27%)
Mutual labels:  highlight
guide
A new feature guide component by react 🧭
Stars: ✭ 597 (+985.45%)
Mutual labels:  highlight
DyAnnotationExtractor
DyAnnotationExtractor is software for extracting annotations (highlighted text and comments) from e-documents like PDF.
Stars: ✭ 34 (-38.18%)
Mutual labels:  highlight
reveal-code-focus
A Reveal.js plugin that allows focusing on specific lines of code blocks.
Stars: ✭ 108 (+96.36%)
Mutual labels:  highlight
Highlight Selected
Highlights the current word selected when double clicking
Stars: ✭ 244 (+343.64%)
Mutual labels:  highlight
go-highlight
A Go (Golang) code syntax highlighting library.
Stars: ✭ 20 (-63.64%)
Mutual labels:  highlight
piu.clj
Simple pastebin
Stars: ✭ 14 (-74.55%)
Mutual labels:  highlight
Highlightr-Plugin
A minimal and aesthetically pleasing highlighting menu that makes color-coded highlighting much easier 🎨.
Stars: ✭ 321 (+483.64%)
Mutual labels:  highlight
Base2Tone-iterm2
Syntax highlighting colorschemes for iTerm2
Stars: ✭ 29 (-47.27%)
Mutual labels:  highlight
colocat
Fegeya Colocat, Colorized 'cat' implementation. Written in C++17.
Stars: ✭ 14 (-74.55%)
Mutual labels:  highlight
react-tagify
📛 Powerful Pure React Component For Hashtags and Mentions In Your React App
Stars: ✭ 24 (-56.36%)
Mutual labels:  highlight
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (-1.82%)
Mutual labels:  highlight
vue-plugin
Highlight.js Vue Plugin
Stars: ✭ 102 (+85.45%)
Mutual labels:  highlight
ChromaTerm
Color your Terminal with RegEx!
Stars: ✭ 149 (+170.91%)
Mutual labels:  highlight
Sketch-Highlighter
Sketch plugin that generates highlights for selected text layers
Stars: ✭ 41 (-25.45%)
Mutual labels:  highlight
Studyit-club
​💔 ​针对校社团开发的一套IT俱乐部官网 -> http://sunhang.gz01.bdysite.com/
Stars: ✭ 17 (-69.09%)
Mutual labels:  highlight
codeblock-beautifier
💅 A chrome extension for highlighting codes of Medium Articles
Stars: ✭ 118 (+114.55%)
Mutual labels:  highlight
datatables.mark.js
A DataTables plugin for mark.js to highlight search terms in tables
Stars: ✭ 44 (-20%)
Mutual labels:  highlight

vue-highlight-text

NPM version NPM downloads Build Status

Vue component for highlight multiple instances of a word

Installation

# with yarn
yarn add vue-highlight-text

# with npm
npm install --save vue-highlight-text

Use component

import Vue from 'vue';
import HighlightText from 'vue-highlight-text';

Vue.component('HighlightText', HighlightText);

Use directive

import Vue from 'vue';
import highlight from 'vue-highlight-text/public/directive.min.js';

Vue.directive('highlight', highlight);

In file vue

<!-- component -->
<HighlightText :keyword="keyword" :sensitive="sensitive">{{msg}}</HighlightText>
<!-- Directive -->
<span v-highlight="{keyword: keyword}">{{msg}}</span>

Props or value of directive

Name Type Default Description
keyword string '' word for highlight in message.
sensitive bool true highlight with case sensitive
overWriteStyle Object {color: '#00C1E8'} custom highlight for overwrite style by HTML DOM Style Object
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].