Outlining for Python or other syntax

Started by JJK, December 09, 2008, 01:23:22 PM

Previous topic - Next topic

JJK

Hello Alex
I work sometimes on *.py texts. Is it possible to display it in outlined mode ? Actually only lines following commented lines are displayed outlined. With Python files, rule for outlining is very simple because it corresponds to indentation. So reading py files is nevertheless easy (without outlining).

Generally, how can we declare the rules to outline some syntax ? Can the user do it or only you ?

alex

Hi,

currenlty this is a limititation for outlining parser - it could not parse python (or haskell) source code and extract scope (outlining) information from there.

But normally it is possible to define this by user (see Scopes part of scecification for syntax). For now hippoedit can only parse outlining for blocks described by open and close tags.

I would try to extend parser in 1.50.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

JJK

Quotesee Scopes part of scecification for syntax
Yes, I saw for basic syntax for example. I could add
Quote<Scope open="With" close="End With" has_name="true" separator="true"/>
to manage also With..End with, isn't it ?  ;)
QuoteI would try to extend parser in 1.50
Genius ! I am so impatient...

alex

Quoteto manage also With..End with, isn't it ? 
Yes, should be possible ;)
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]