Applying different lexer on the same screen(styledtextctrl)

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN
     -> FORTRAN LEXER
END_FORTRAN

BEGIN_PYTHON
    -> PYTHON LEXER
END_PYTHON

Wonjun, Choi

Hi,

···

On Mon, Aug 1, 2011 at 8:13 PM, Wonjun, Choi <wonjunchoi001@gmail.com> wrote:

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN
-> FORTRAN LEXER
END_FORTRAN

BEGIN_PYTHON
-> PYTHON LEXER
END_PYTHON

No, cant have more than one lexer in the same document.

Cody

ok, thank you for your comment!

Wonjun, Choi

···

2011/8/2 Cody Precord codyprecord@gmail.com

Hi,

On Mon, Aug 1, 2011 at 8:13 PM, Wonjun, Choi wonjunchoi001@gmail.com wrote:

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN

-> FORTRAN LEXER

END_FORTRAN

BEGIN_PYTHON

→ PYTHON LEXER

END_PYTHON

No, cant have more than one lexer in the same document.

Cody

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

I hope I can see the changing lexer code in Editra. but I have no idea where it is.
could you tell me about this?

···

2011/8/2 최원준 wonjunchoi001@gmail.com

ok, thank you for your comment!

Wonjun, Choi

2011/8/2 Cody Precord codyprecord@gmail.com

Hi,

On Mon, Aug 1, 2011 at 8:13 PM, Wonjun, Choi wonjunchoi001@gmail.com wrote:

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN

-> FORTRAN LEXER

END_FORTRAN

BEGIN_PYTHON

→ PYTHON LEXER

END_PYTHON

No, cant have more than one lexer in the same document.

Cody

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

what about this concept?
if my mouse pointer is in designated block, the lexer will be automatically changed.

2011년 8월 30일 오후 8:14, 최원준 wonjunchoi001@gmail.com님의 말:

···

I hope I can see the changing lexer code in Editra. but I have no idea where it is.
could you tell me about this?

2011/8/2 최원준 wonjunchoi001@gmail.com

ok, thank you for your comment!

Wonjun, Choi

2011/8/2 Cody Precord codyprecord@gmail.com

Hi,

On Mon, Aug 1, 2011 at 8:13 PM, Wonjun, Choi wonjunchoi001@gmail.com wrote:

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN

-> FORTRAN LEXER

END_FORTRAN

BEGIN_PYTHON

→ PYTHON LEXER

END_PYTHON

No, cant have more than one lexer in the same document.

Cody

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en

what if I use FormatRange() method?

first, I make three class(python stc class, fortran stc class, c stc class)
second, those class are displayed by using FormatRange() method.

what do you think about this?

2011년 9월 1일 오전 11:36, 최원준 wonjunchoi001@gmail.com님의 말:

···

what about this concept?
if my mouse pointer is in designated block, the lexer will be automatically changed.

2011년 8월 30일 오후 8:14, 최원준 wonjunchoi001@gmail.com님의 말:

I hope I can see the changing lexer code in Editra. but I have no idea where it is.
could you tell me about this?

2011/8/2 최원준 wonjunchoi001@gmail.com

ok, thank you for your comment!

Wonjun, Choi

2011/8/2 Cody Precord codyprecord@gmail.com

Hi,

On Mon, Aug 1, 2011 at 8:13 PM, Wonjun, Choi wonjunchoi001@gmail.com wrote:

Can I apply the different lexer on the same screen at the same time?

for example

BEGIN_FORTRAN

-> FORTRAN LEXER

END_FORTRAN

BEGIN_PYTHON

→ PYTHON LEXER

END_PYTHON

No, cant have more than one lexer in the same document.

Cody

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en