Page 1 of 1

EmEditor Syntax highlighting

Posted: Wed Jun 19, 2013 8:07 pm
by Zik
RusseL wrote:EmEditor
Hi RusseL, can you help me with EmEditor? where can i find escript configuration? or can you send yours?
And instead of pressing Ctrl+Shift+A, can I change it to a doubleclick?
And the last question about compiler, correct me if i did wrong:
Command: %WinDir%\system32\cmd.exe
Arguement: /k D:\MAHA\scripts\ecompile.exe D:\MAHA\scripts\$(Path)
Folder: $(Dir)
But i don't get compilation results
Compilation Summary:

D:\MAHA\pkg\skills\carpentry>
I'll post your reply then in a new EmEditor topic for others. Thx![/quote]

Hi. First of all create in emeditor homepath textfile escript.esy or something like this, no matter.
Paste inside

Code: Select all

; EmEditor Syntax File
;
; To import this file to an existing configuration, select Configuration
; under the Tool menu, select Define Configurations, select a configuration
; you want to import to, press [Properties], select the Highlight page, and
; press [Import].
;
; Submit your customized file to submit@emurasoft.com
; to be listed in www.emurasoft.com user files pages.
;
#Highlight=on
#BeginTag=
#EndTag=
#CommentBegin=/*
#CommentEnd=*/
#LineComment1=//
#LineComment2=
#SingleQuote=off
#DoubleQuote=on
#ContinueQuote=on
#Escape=\
#ScriptBegin=<%
#ScriptEnd=%>
#SpecialSyntax=off
#HighlightBraces=on
 
#Keyword color=4,word=on,rightall=off,case=off,insidetag=off,regexp=off,rightall2=off
if
then
elseif
endif
else
goto
gosub
return
global
const
local
dim
var
do
while
endwhile
exit
declare
function
endfunction
exported
array
use
include
break
continue
for
endfor
to
next
foreach
endforeach
repeat
until
program
endprogram
case
default
endcase
enum
endenum
downto
step
reference
out
inout
ByVal
string
long
integer
double
and
or
not
byref
error
dictionary
struct
in
true
false
Open EmEditor -> Tools -> Select Configuration -> Define Configuration -> new -> escript ...... blablabla

Association -> SRC and INC
Highlight(1) -> Import -> escript.esy (that u already created)
Ok, Exit to main menu
Tools -> External Tools -> Customize Tools -> New -> ecompile
Command: Z:\home\rl\pol099\scripts\ecompile.exe
Arguments: -f $(Path)
Initial Dir: $(Dir)


Open EmEditor -> Tools -> Select Configuration -> Define Configuration -> Escript -> Properties -> Keyboard
Category: External Tools
Commands: Ecompile

And you can bind it on F9 for example, and compile with 1 button
PS
Great thanks and 2 cups of tea to RusseL for his help!

Re: Notepad++ Syntax highlighting

Posted: Thu Jun 20, 2013 11:54 am
by xeon
Use Scite!! :D

Re: Notepad++ Syntax highlighting

Posted: Thu Jun 20, 2013 4:17 pm
by Zik
ok thank you, i wanted to try it.
installed it. Its big plus is a compiling in a single click, but it's not enough to compensate:
- terrible highlighting(i know it's customizable, but pascal style in N++ is much better)
- a little bit smaller font than in N++
- no line numeration, hence, no nice blue dots near lines as bookmarks
- no highlighting of all words in a whole text by a dbl-click
- N++ can search in all opened tabs at once(usefull to search in all includes, rather than recalling in which inc that function is)
- monospaced font is not by deafault

xeon, please tell me why it's better than N++ for you?

So one more additional question:
How to attach ecompile to Notepad++? Is it possible at least?

:bacondance: nice dancing btw))

Re: Notepad++ Syntax highlighting

Posted: Thu Jun 20, 2013 4:22 pm
by RusseL
EmEditor

Re: Notepad++ Syntax highlighting

Posted: Thu Jun 20, 2013 10:36 pm
by Yukiko
Zik wrote:ok thank you, i wanted to try it.
installed it. Its big plus is a compiling in a single click, but it's not enough to compensate:
- terrible highlighting(i know it's customizable, but pascal style in N++ is much better)
- a little bit smaller font than in N++
- no line numeration, hence, no nice blue dots near lines as bookmarks
- no highlighting of all words in a whole text by a dbl-click
- N++ can search in all opened tabs at once(usefull to search in all includes, rather than recalling in which inc that function is)
- monospaced font is not by deafault

xeon, please tell me why it's better than N++ for you?

So one more additional question:
How to attach ecompile to Notepad++? Is it possible at least?

:bacondance: nice dancing btw))
I can help with some of your problems with Scite. Line numbers can be enabled easily under the "View" menu option. I can help you with enabling monospaced fonts as well. I will say that I have trouble changing or adding custom highlight colours to Scite.

Re: Notepad++ Syntax highlighting

Posted: Sat Jun 22, 2013 2:58 pm
by Zik
RusseL wrote:EmEditor
Image

And thanks for the offer, Yukiko. But I'll try EmEditor first, it looks pretty powerfull.

UPD:
I've been using EmEditor for a week now, and thx to Russel, i enjoyed all its power. It's really worthy of its cost. It can do pretty everything i need, and helps me a lot with scripting!

Re: EmEditor Syntax highlighting

Posted: Wed Feb 26, 2014 7:44 am
by biosek
i use notepad++ with plugin NppExec with script:

Code: Select all

SET compiler = c:\pol\scripts\ecompile.exe
NPP_SAVE
cd c:\pol
"$(compiler)" "$(FULL_CURRENT_PATH)"
UNSET compiler