Colorer — syntax highlighting and text parsing

Here you can discuss about your favorite plug-in.
d3x0r
Posts: 6
Joined: Fri 01 Apr, 2011 21:27

ES6 Template Literal syntax highlighting

Post by d3x0r »

Latest post of the previous page:

ES6 Template Literal syntax highlighting
In the editor, Javascript template literals quoted with ` ` do not group the text as text; and instead open/close parens/braces in the string affect highlighting next entries.

https://developer.mozilla.org/en-US/doc ... e_literals

Would be nice if support was added for strings quoted with `...`.
Last edited by HaRT on Wed 14 Jun, 2017 13:32, edited 1 time in total.
Reason: Copied the ex-topic subject into the message

peter.mlich
Posts: 3
Joined: Thu 13 Dec, 2018 09:38

Colorer — syntax highlighting and text parsing

Post by peter.mlich »

Version 1.2.1.2 . 20.06.2013
Bug bad color:

php code:

Code: Select all

//	$form['mail']['to']   = 'my.mail snail server dot cz';	// comment
(not colored full line as comment)

js code:

Code: Select all

	// comment
(not colored full line as comment)

Code: Select all

// comment
(but this works correct)

And other bugs, or try check, example:
- on long <img> tag with long base64 src not end color syntax src="..." - still opened " on new line
- js code reg. expression syntax str=str.replace(/aaa/g,'xxx') or str=str.replace(new regExp('aaa','g'), 'xxx')
- js code multi-line syntax

Code: Select all

x = 'aaa\
bbb\
';

peter.mlich
Posts: 3
Joined: Thu 13 Dec, 2018 09:38

Colorer — syntax highlighting and text parsing

Post by peter.mlich »

https://plugring.farmanager.com/plugin.php?pid=526&l=en
Wow, on main page i found older version plugin than my 1.2.1.2

LigH
Posts: 61
Joined: Fri 19 Mar, 2010 14:12
Has thanked: 2 times

Colorer — syntax highlighting and text parsing

Post by LigH »

The current repository is at:

https://github.com/colorer/FarColorer

Download binary releases from:

https://github.com/colorer/FarColorer/releases

Furthermore, a rather recent installation of Far Manager v3.0.5xxx should contain a just as recent FarColorer plugin.
Last edited by LigH on Thu 13 Dec, 2018 10:12, edited 2 times in total.

csaba.coder
Posts: 1
Joined: Tue 21 May, 2019 10:18

Colorer — syntax highlighting and text parsing

Post by csaba.coder »

I found a little error in the SQL.hrc file.
In SQL file the string content separator character apostrophe. ('some string'). If I use apostrophe as part of string content, I use double apostrophe ('string with '' character', therefore the escape charetrer is an other apostrophe). But the sql.hrc use as escape the backslash (\) character instead of apostrophe). Would be nice if support fix this error.

A possible fix:

sql.hrc from line 949 current:

<scheme name="stringApost" if="backslash_escapes">
<regexp match="/\\'/" region='def:StringContent'/>
</scheme>

With my fix:

<scheme name="stringApost" if="backslash_escapes">
<regexp match="/''/" region='def:StringContent'/>
</scheme>

This may not be the best, but working.

Post Reply

Return to “General Plug-In Discussions”