mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 18:39:51 +02:00
syntax highlighting (#3762)
* syntax highlighting * Delete package-lock.json * Update package.json * Update package.json * Delete syntax-highlighting.js * Update [example].js * Update [example].js * Update [example].js * added correct file * linting * Update site/examples/code-highlighting.js Co-authored-by: Tim Buckley <timothypbuckley@gmail.com> * Update site/examples/code-highlighting.js Co-authored-by: Tim Buckley <timothypbuckley@gmail.com> * Update site/examples/code-highlighting.js Co-authored-by: Tim Buckley <timothypbuckley@gmail.com> * updated pull request with some linting * moved getLength fcn Co-authored-by: Tim Buckley <timothypbuckley@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ import PlainText from '../../examples/plaintext'
|
||||
import ReadOnly from '../../examples/read-only'
|
||||
import RichText from '../../examples/richtext'
|
||||
import SearchHighlighting from '../../examples/search-highlighting'
|
||||
import CodeHighlighting from '../../examples/code-highlighting'
|
||||
import Tables from '../../examples/tables'
|
||||
|
||||
const EXAMPLES = [
|
||||
@@ -43,6 +44,7 @@ const EXAMPLES = [
|
||||
['Read-only', ReadOnly, 'read-only'],
|
||||
['Rich Text', RichText, 'richtext'],
|
||||
['Search Highlighting', SearchHighlighting, 'search-highlighting'],
|
||||
['Code Highlighting', CodeHighlighting, 'code-highlighting'],
|
||||
['Tables', Tables, 'tables'],
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user