Supress region?

View: New views
3 Messages — Rating Filter:   Alert me  

Supress region?

by Frank Wagner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there a way to completly suppress a region from generated HTML output.
I was trying def:Special, but it does not work.
 
Commenting code seems to work:
In ParsedLineWriter::htmlRGBWrite()
int pos = 0;
for(LineRegion *l1 = lineRegions; l1; l1 = l1->next){
...
};
// FW commented out:
/*
if (pos < line->length()){
textWriter->write(line, pos, line->length() - pos);
};
};
*/
Is there a better way?
Thanks.
 
Tschau,
Frank
 

Re: Supress region?

by Igor Russkih :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Frank,

Can you clarify your question? Are you trying to remove some particular region from HTML output? You can reach this by fixing appropriate HRD description file.

On 3/9/06, Frank Wagner <fwagner@...> wrote:
Is there a way to completly suppress a region from generated HTML output.
I was trying def:Special, but it does not work.
 
Commenting code seems to work:
In ParsedLineWriter::htmlRGBWrite()
int pos = 0;
for(LineRegion *l1 = lineRegions; l1; l1 = l1->next){
...
};
// FW commented out:
/*
if (pos < line->length()){
textWriter->write(line, pos, line->length() - pos);
};
};
*/
Is there a better way?
Thanks.
 
Tschau,
Frank
 



--
  Igor

Parent Message unknown RE: Supress region?

by Frank Wagner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is what I did (I should have mentioned, sorry):
 
Modified lex.hrc (using 'def:Special')
<scheme name="LYComments">
<regexp match="/(\/\/.*$)/" region0="def:Special"/>
<block start="/\/\*/" end="/\*\//" scheme="Comment" region="def:Special" region00="def:Special" region10="def:Special"/>
</scheme>
 
But comments are still sent to generated HTML output.
 
How could changing a HRD file help?
Are there special colors for suppressing text?
 
I tried (with original lex.hrc file)
<assign name="def:Comment" fore="#0" back="#0"/>
without any success.
 
Tschau,
Frank
 


From: Igor Russkih [mailto:irusskih@...]
Sent: Thursday, March 09, 2006 12:31
To: colorer-talks@...; Frank Wagner
Subject: Re: Supress region?

Frank,

Can you clarify your question? Are you trying to remove some particular region from HTML output? You can reach this by fixing appropriate HRD description file.

On 3/9/06, Frank Wagner <fwagner@...> wrote:
Is there a way to completly suppress a region from generated HTML output.
I was trying def:Special, but it does not work.
 
Commenting code seems to work:
In ParsedLineWriter::htmlRGBWrite()
int pos = 0;
for(LineRegion *l1 = lineRegions; l1; l1 = l1->next){
...
};
// FW commented out:
/*
if (pos < line->length()){
textWriter->write(line, pos, line->length() - pos);
};
};
*/
Is there a better way?
Thanks.
 
Tschau,
Frank
 



--
  Igor