EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Customize the Tag Jump
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
Yutaka
Posted on: 9/22/2008 9:14 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Customize the Tag Jump
Quote:

i_libra wrote:
Thank you,

I understand, the regexp should not only match the FILENAME and LINENO,but also match the whole line, then it can work.

^O^


Yes, that is true. Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

i_libra
Posted on: 9/22/2008 8:39 pm
Just popping in
Joined: 9/22/2008
From:
Posts: 6
Re: Customize the Tag Jump
Thank you,

I understand, the regexp should not only match the FILENAME and LINENO,but also match the whole line, then it can work.

^O^
Yutaka
Posted on: 9/22/2008 8:26 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Customize the Tag Jump
Try this:


^([\w\\\- :.&$%~!]*?):([0-9]+):.*


See also:
http://www.emeditor.com/help/howto/search/search_regexp_syntax.htm


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

i_libra
Posted on: 9/22/2008 7:27 pm
Just popping in
Joined: 9/22/2008
From:
Posts: 6
Re: Customize the Tag Jump
Thank you Yutaka-san,

I have tried the 7.5alpha 11,

But it still cannot work.Could you help me to find the reason?

I set the TagJump with this:
------------------------------------------
(^[\.\w\/]*?[\w\.]+?):([0-9]*):
\1 filename \2 lineno
------------------------------------------

I use the codes below as a test:
--------------------------------------------
void main()
{
test error happen

}
--------------------------------------------------
and save it as test2.cpp

then I use gcc from the external tool bar to compile it.
the Setting is
---------------------------------------------------
Command:%WinDir%\system32\cmd.exe
Argument:/k C:\MinGW\bin\gcc.exe $(Filename).$(Ext) -o $(Filename).exe && $(Filename).exe
Initial Dir:$(Dir)
--------------------------------------------------------

The Output windows look like this:
--------------------------------------------------
test2.cpp:2: error: `main' must return `int'
test2.cpp: In function `int main(...)':
test2.cpp:3: error: `test' was not declared in this scope
test2.cpp:3: error: expected `;' before "error"

D:\>
-----------------------------------------------------------

Yutaka
Posted on: 9/22/2008 8:44 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Customize the Tag Jump
1. Use EmEditor v7.5 alpha, which allows you to customize the tag format. It will become EmEditor v8 beta shortly.

2. We might work on that in the future.

3. The Outline plug-in does not parse functions currently. We will work on this in the future. Instead, you might want to use the Projects plug-in Symbol feature.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

i_libra
Posted on: 9/22/2008 5:02 am
Just popping in
Joined: 9/22/2008
From:
Posts: 6
Customize the Tag Jump
1.I use the gcc as my compiler,but the Tag Jump has never work with it. Because my error message is filename:lineNo:Reason
So I hope that I can customize the Tag Jump with Regex.

2.Another request is that may I have the function that I can use the Output window as a console? So that I can execute some quick command such as delete or mkdir while I'm MAKING my codes.

I think use a plugin to improve the output windows will be a better idea.

3.A bug report about the outline plugin.
We have some C codes like this:
the outline plugin will only display '---------------------------------' as the function name for this codes.

//----------------------------------------------------------------------------
// Function:
int foo_bar(
//
// Description:
// demo
//
// Parameters:
none
)
//
// Returns: STATUS
//
//----------------------------------------------------------------------------
{
}



Many thanks for this good software, I love it very much.


Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文