AutoHotkey Community

It is currently May 26th, 2012, 12:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9  Next
Author Message
 Post subject:
PostPosted: December 9th, 2007, 3:13 pm 
im close now.

ive compiled sc1 with my preferences. everything works except ahk SH... when i open .ahk all text is greyed out.

ive put LexAHK1.cxx in scintilla\src before nmake of scintilla. also the ahk1.properties is in scite\src before nmake

so what could be wrong?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2007, 3:34 pm 
ahk1.properties is in scite\src

uhm that doesnt mather ..that is also in embedded.properties


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2007, 4:22 pm 
ive found the problem. but how do i run lexgen.py?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 9th, 2007, 5:37 pm 
Quote:
cl -Zi -TP -W4 -Zc:forScope -Zc:wchar_t -D_CRT_SECURE_NO_DEPRECATE=1 -O1
-MT -DNDEBUG -GL -I../include -I../src -c -Fo.\LexAHK1.obj ..\src\LexAHK1.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

LexAHK1.cxx
..\src\LexAHK1.cxx(58) : error C2065: 'SCE_AHK_WORD_CF' : undeclared identifier
..\src\LexAHK1.cxx(60) : error C2065: 'SCE_AHK_WORD_CMD' : undeclared identifier

..\src\LexAHK1.cxx(62) : error C2065: 'SCE_AHK_WORD_FN' : undeclared identifier
..\src\LexAHK1.cxx(64) : error C2065: 'SCE_AHK_WORD_DIR' : undeclared identifier

..\src\LexAHK1.cxx(66) : error C2065: 'SCE_AHK_WORD_KB' : undeclared identifier
..\src\LexAHK1.cxx(68) : error C2065: 'SCE_AHK_WORD_VAR' : undeclared identifier

..\src\LexAHK1.cxx(70) : error C2065: 'SCE_AHK_WORD_SP' : undeclared identifier
..\src\LexAHK1.cxx(72) : error C2065: 'SCE_AHK_WORD_UD' : undeclared identifier
..\src\LexAHK1.cxx(74) : error C2065: 'SCE_AHK_DEFAULT' : undeclared identifier
..\src\LexAHK1.cxx(90) : error C2065: 'SCE_AHK_COMMENTBLOCK' : undeclared identi
fier
..\src\LexAHK1.cxx(91) : error C2065: 'SCE_AHK_STRING' : undeclared identifier
..\src\LexAHK1.cxx(92) : error C3861: 'SCE_AHK_DEFAULT': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(103) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(126) : error C2065: 'SCE_AHK_SYNOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(128) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(134) : error C2065: 'SCE_AHK_LABEL' : undeclared identifier
..\src\LexAHK1.cxx(137) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(140) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(149) : error C2065: 'SCE_AHK_COMMENTLINE' : undeclared identi
fier
..\src\LexAHK1.cxx(150) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(155) : error C2065: 'SCE_AHK_ESCAPE' : undeclared identifier
..\src\LexAHK1.cxx(161) : error C2065: 'SCE_AHK_VARREF' : undeclared identifier
..\src\LexAHK1.cxx(162) : error C2065: 'SCE_AHK_VARREFKW' : undeclared identifie
r
..\src\LexAHK1.cxx(163) : error C2065: 'SCE_AHK_ERROR' : undeclared identifier
..\src\LexAHK1.cxx(165) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(167) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(175) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(176) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(180) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(197) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(198) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(199) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(205) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(207) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(215) : error C3861: 'SCE_AHK_WORD_KB': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(217) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(220) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(235) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(237) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(239) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(245) : error C2065: 'SCE_AHK_EXPOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(247) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(249) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(254) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(263) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(266) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(271) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(274) : error C2065: 'SCE_AHK_NUMBER' : undeclared identifier
..\src\LexAHK1.cxx(278) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(281) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(283) : error C2065: 'SCE_AHK_IDENTIFIER' : undeclared identif
ier
..\src\LexAHK1.cxx(290) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(292) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(297) : error C3861: 'SCE_AHK_VARREFKW': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(299) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(304) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(306) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(309) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(313) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(319) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(323) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(326) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(330) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(334) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(335) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(343) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(345) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(347) : error C3861: 'SCE_AHK_EXPOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(350) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(354) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(357) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(359) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(361) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(362) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(367) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(371) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(374) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(382) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(385) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(386) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(387) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(388) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(415) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(416) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(418) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(423) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(464) : error C2065: 'SCLEX_AHK' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 10th, 2007, 8:00 pm 
sry for messing up the board with quadpost and i thought the qoute would fold. anyways for others that might get that problem. i missed this ..maybe its mentioned in this forum before ..i dont know. Now it works

http://www.mail-archive.com/scintilla-interest@lyra.org/msg01752.html


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2007, 12:52 am 
Offline

Joined: March 16th, 2006, 5:01 pm
Posts: 150
mosaic wrote:
Greetings PhiLho/Toralf and others,

I did not realize there is another topic on Notepad++ here. While I like the syntax highlighting, the function list plugin is way more powerful, it allows one to browse the code efficiently.

The following is the screen shot, you can see the function list on the right side panel. What's useful is not simply the list of functions (notice I have customized it to recognize the include directive as well, by the way, in Notepad++, one can highlight the included filename, hit a hotkey Alt+F5 to open that file???), one can also double click on the function name, it will automatically go to the begining of the function (subroutine) definition:

Image

In terms of Syntax Highlighting/Folding feature, I would like to see the provision of Subroutine folding, currently, the UserDefineLang.xml can do the folding for function fairly well, but not for subroutines.

In the above screenshot, you can notice that in the bottom, I made a dock window (based on majk..'s dock), which displayed some file info, there are also four text button on the right bottom: R/W, Load, 2Dir, Explorer, these are quick buttons to toggle the read/write attribute of the edited file, Load the script if it is AHK script, Goto the command window of the directory where the edited file resides, Explorer the directory where the edited file resides. Quite handy for myself.

Let me know PhiLho when you are ready to make improvement on your lexer, I am willing to test it. Toralf, I realized that you are ready to try Notepad++, have you tried it yet?


Mosaic, that's very impressive. How did you get the lexer to work with notepad++? In this thread, everybody said it's not possible. I also love the function list plugin (working with ahk!).

I you could post a step-by-step guide to get those two things to work, that'd be great!

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2008, 7:19 pm 
Offline

Joined: January 1st, 2005, 11:54 am
Posts: 75
Apparently, Notepad++ 4.7 supports external lexers

Quote:
As well, besides the User Language Define System, the new language (Scintilla external lexer) can be added in Notepad++ under the plugin form.

(http://notepad-plus.sourceforge.net/uk/news.php?lang=uk)

So I just copied the AHK-lexer SciLexer.dll and the ahk1.properties- files into the plugin directory. But all I got was an error message:
Quote:
Load Library is failed.
Make "Runtime Library" setting of this project as "Multi-threaded(/MT)" may cure this problem.

This plugin is not compatible with current version of Notepad++.
Remove this plugin from plugins directory if you don't want to see this message on the next launch time.


Maybe the installation is a little more complicated than just copying files. Does anyone know more about it? Or is it necessary to change the lexer?

Thanks
Boskoop


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 1st, 2008, 12:44 am 
Offline

Joined: March 22nd, 2008, 4:03 am
Posts: 57
Location: At my computer
Quote:
cl -Zi -TP -W4 -Zc:forScope -Zc:wchar_t -D_CRT_SECURE_NO_DEPRECATE=1 -O1
-MT -DNDEBUG -GL -I../include -I../src -c -Fo.\LexAHK1.obj ..\src\LexAHK1.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

LexAHK1.cxx
..\src\LexAHK1.cxx(58) : error C2065: 'SCE_AHK_WORD_CF' : undeclared identifier
..\src\LexAHK1.cxx(60) : error C2065: 'SCE_AHK_WORD_CMD' : undeclared identifier

..\src\LexAHK1.cxx(62) : error C2065: 'SCE_AHK_WORD_FN' : undeclared identifier
..\src\LexAHK1.cxx(64) : error C2065: 'SCE_AHK_WORD_DIR' : undeclared identifier

..\src\LexAHK1.cxx(66) : error C2065: 'SCE_AHK_WORD_KB' : undeclared identifier
..\src\LexAHK1.cxx(68) : error C2065: 'SCE_AHK_WORD_VAR' : undeclared identifier

..\src\LexAHK1.cxx(70) : error C2065: 'SCE_AHK_WORD_SP' : undeclared identifier
..\src\LexAHK1.cxx(72) : error C2065: 'SCE_AHK_WORD_UD' : undeclared identifier
..\src\LexAHK1.cxx(74) : error C2065: 'SCE_AHK_DEFAULT' : undeclared identifier
..\src\LexAHK1.cxx(90) : error C2065: 'SCE_AHK_COMMENTBLOCK' : undeclared identi
fier
..\src\LexAHK1.cxx(91) : error C2065: 'SCE_AHK_STRING' : undeclared identifier
..\src\LexAHK1.cxx(92) : error C3861: 'SCE_AHK_DEFAULT': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(103) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(126) : error C2065: 'SCE_AHK_SYNOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(128) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(134) : error C2065: 'SCE_AHK_LABEL' : undeclared identifier
..\src\LexAHK1.cxx(137) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(140) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(149) : error C2065: 'SCE_AHK_COMMENTLINE' : undeclared identi
fier
..\src\LexAHK1.cxx(150) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(155) : error C2065: 'SCE_AHK_ESCAPE' : undeclared identifier
..\src\LexAHK1.cxx(161) : error C2065: 'SCE_AHK_VARREF' : undeclared identifier
..\src\LexAHK1.cxx(162) : error C2065: 'SCE_AHK_VARREFKW' : undeclared identifie
r
..\src\LexAHK1.cxx(163) : error C2065: 'SCE_AHK_ERROR' : undeclared identifier
..\src\LexAHK1.cxx(165) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(167) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(175) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(176) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(180) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(197) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(198) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(199) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(205) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(207) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(215) : error C3861: 'SCE_AHK_WORD_KB': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(217) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(220) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(235) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(237) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(239) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(245) : error C2065: 'SCE_AHK_EXPOPERATOR' : undeclared identi
fier
..\src\LexAHK1.cxx(247) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(249) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(254) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(263) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(266) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(271) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(274) : error C2065: 'SCE_AHK_NUMBER' : undeclared identifier
..\src\LexAHK1.cxx(278) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(281) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(283) : error C2065: 'SCE_AHK_IDENTIFIER' : undeclared identif
ier
..\src\LexAHK1.cxx(290) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(292) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(297) : error C3861: 'SCE_AHK_VARREFKW': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(299) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(304) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(306) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(309) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(313) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(319) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(323) : error C3861: 'SCE_AHK_COMMENTLINE': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(326) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(330) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(334) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(335) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(343) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(345) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(347) : error C3861: 'SCE_AHK_EXPOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(350) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(354) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(357) : error C3861: 'SCE_AHK_NUMBER': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(359) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(361) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(362) : error C3861: 'SCE_AHK_DEFAULT': identifier not found,
even with argument-dependent lookup
..\src\LexAHK1.cxx(367) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(371) : error C3861: 'SCE_AHK_LABEL': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(374) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(382) : error C3861: 'SCE_AHK_IDENTIFIER': identifier not foun
d, even with argument-dependent lookup
..\src\LexAHK1.cxx(385) : error C3861: 'SCE_AHK_STRING': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(386) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(387) : error C3861: 'SCE_AHK_VARREF': identifier not found, e
ven with argument-dependent lookup
..\src\LexAHK1.cxx(388) : error C3861: 'SCE_AHK_ERROR': identifier not found, ev
en with argument-dependent lookup
..\src\LexAHK1.cxx(415) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(416) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(418) : error C3861: 'SCE_AHK_COMMENTBLOCK': identifier not fo
und, even with argument-dependent lookup
..\src\LexAHK1.cxx(423) : error C3861: 'SCE_AHK_SYNOPERATOR': identifier not fou
nd, even with argument-dependent lookup
..\src\LexAHK1.cxx(464) : error C2065: 'SCLEX_AHK' : undeclared identifier
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

I got this message trying to compile scite and also trying to add this lexer into Notepad2 does someone mind pointing me towards a solution?

_________________
My Blogs | PChat the free XChat fork for Windows and *nix
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Update to 1.76!
PostPosted: July 2nd, 2008, 7:48 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
A quick note to say I finally found some time to finish a little script I started months ago (!) which injects the stuff needed to add LexAHK1 into Scintilla.
This allows quick and hopefully reliable updates, by myself, or yourself if you have a compiler!

The previous version of SciTE with AHK support was badly outdated (1.71!) and SciTE has quite improved since then, supporting Lua 5.1, improving the session file format, etc.

I made a package with the whole stuff, binary and files useful to recompile if you need them.
Get it at: SciTE4AHK.zip

I will lazily paste here the content of the README file I made:
Quote:
In this package, I give the new binary (v.1.76) of SciTE (with Lua) and Scintilla (actually SciLexer.dll) compiled with Visual Studio Express 2005, including support of AHK v.1.

I also provide tools to recompile them, in case I still lag behind the latest versions of SciTE...

AddLexAHK1.ahk is an AutoHotkey script which injects the minimal code to add the LexAHK.cxx to Scintilla: it copies this file in the sources and edit SciLexer.h and KeyWords.cxx to add the required declarations.
It assumes a given directory structure, you have to edit the first lines to adapt to your setting.

LexAHK1.cxx is thus the lexer for AutoHotkey v.1: I expect v.2 to be largely different in syntax, hence the provision for another version. The state names will be likely shared, though.

SciLexer.vcproj have to be put in scintilla\vcbuild, it is the project file for VSE2005 I used to make SciLexer.dll
SciTELua.vcproj and SciTE.vcproj have to be put in scite\vcbuild. SciTELua have to be compiled first (optimized for speed...) and SciTE will use the corresponding library.
SciLexer and SciTE are optimized for size, like in the original makefiles.

ahk1.properties is my current properties file for the lexer. Adjust the autohotkeydir setting to your configuration.

SciLexer.dll, SciTE.exe and ahk1.properties have to be dropped in the SciTE install dir, the first two replacing the provided binaries (I suggest to save them just in case...).

OpenSciTESession.ahk can be put in the SciTE directory. With proper registry settings (see SciTE.reg), you can double-click a session file to open the related files in an instance of SciTE.

SciTE.reg contains the registry hacks I apply to integrate SciTE to Windows (open by default for some file types, always in context menu, etc.).

SciTEUser.properties is an example of user defined properties, with some personal settings, and an example of including AHK lexer (in open filter, lexer list and import).

SciTEStartup.lua is a slightly stripped down version of my collection of Lua functions, including a call to ListAHKFunctions4SciTE.lua!
Some things there are useless or unused, I left these as code sample... Deep clean-up advised! ;)

I fear I don't come must often here, so I am not sure if I will answer any question in decent time. But I will try and take a look from time to time.
Enjoy! :D

PS.: I haven't fully read the messages above, but it looks like Notepad+ now support external lexers? I will try again. Perhaps the new SciLexer was the missing piece of the puzzle? Will go back here and see the issues.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 2nd, 2008, 9:42 am 
Quote:
I fear I don't come must often here
:cry: *sigh*


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2008, 3:15 am 
Offline

Joined: July 6th, 2006, 7:26 pm
Posts: 48
Location: Poland
there is any chance to have this lexer in Notepad++ following this compile tutorial?
http://sourceforge.net/forum/forum.php?thread_id=1907325&forum_id=482781


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2009, 7:02 pm 
Offline

Joined: February 19th, 2009, 6:54 pm
Posts: 2
Location: Mesa, AZ
Veovis wrote:
I use Programmers Notepad 2 which uses the Scite lexer but i have been unsuccessful in trying to make a working ahk syntax highlighting for ahk. When i came upon this post i thought this would solve it but, i still have been unsuccessful in getting it to work. Anyone have an ideas?

I have played around a bit with the scheme files in Programmer's Notepad 2, and have a partial solution to viewing code in AHK format. If anyone is interested in my results, I'll gladly share them. If the interest is there, I'll even start a new topic covering the particulars. Thank you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2009, 7:32 pm 
You s-/could combine your effort with others! A search at the forum delivered a limited amount on "notepad2". Please check those out first. And btw, thx for your offer! Much app reciated. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 19th, 2009, 8:21 pm 
Offline

Joined: February 19th, 2009, 6:54 pm
Posts: 2
Location: Mesa, AZ
BoBo³ wrote:
You s-/could combine your effort with others! A search at the forum delivered a limited amount on "notepad2". Please check those out first. And btw, thx for your offer! Much app reciated. 8)

Yeah, and this is more Programmer's Notepad 2, which I think is different from Notepad2. (Can't they come up with inventive names?) Anyhow, thank you, and I'll probably start a new thread to address this. Thank you!

_________________
-Ben.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2009, 12:29 pm 
Offline

Joined: February 5th, 2007, 12:19 pm
Posts: 192
Location: Osnabrück, Germany
I think Programmer's Notepad is also a scite variant (with tabs). I like to see your schemes. Would be nice to have another Editor. :D
At the moment I can't say what I like most. For a short look at the code I use now Notepad2.
For longer working it is mostly PSPad and sometimes i debug my scripts with notepad++.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group