Ruby2html -was RE: Congrats to Matz...working 11 years on Ruby an d counting!

Simon Strandgaard [mailto:neoneye@adslhome.dk] said:

Mentioning regexp…
I have just played around with my own ruby2html thing…
the output is here… check it out.

http://neoneye.dk/syntax.html

heredoc renders nice in mozilla :wink:

Now it converts from Ruby into xhtml 1.0 strict.

Any thoughts about its output?

simple yet kewl.

  1. can you extend gray background of comments page wide?

  2. tabs too long (for me). Can you align defs with the class name and codes
    under def names?

eg.

Class X
# def aligns under X
# asdfasdfasdf
def x
# code here aligns under x
# asdfasdfasdf
end
end

  1. I’d like coloring that easily distinguishes and separate classes.

Can you do this: for each class boundary (say fr Class… to …end), the
color alternates fr white to green.

Eg.

#background from here is white
Class X

end

background fr here is green

Class Y

end

#background from here is white again,…
Class Z

end

Simon Strandgaard

kind regards -botp

Simon Strandgaard [mailto:neoneye@adslhome.dk] said:

Mentioning regexp…
I have just played around with my own ruby2html thing…
the output is here… check it out.

http://neoneye.dk/syntax.html

heredoc renders nice in mozilla :wink:

Now it converts from Ruby into xhtml 1.0 strict.

Any thoughts about its output?

simple yet kewl.

  1. can you extend gray background of comments page wide?

Don’t know how to do it. I have played around with the
display property, but it seems to be rather difficult.

span.comment {
display: block;
/padding-right: %100;/
background-color: rgb(180, 180, 180);
}

I couldn’t solve it. Suggestions is appreciated (need help).

  1. tabs too long (for me). Can you align defs with the class name and codes
    under def names?

Will require some conceptual changes, because x-position of each letter
has to be resolved. I realized this when I were almost done.
It is possible and not difficult, just requires rethinking.

  1. I’d like coloring that easily distinguishes and separate classes.

Can you do this: for each class boundary (say fr Class… to …end), the
color alternates fr white to green.

I will have to poke around a little with this… I think it should be
relatively easy to add.

I have added your suggestions on my ever growing TODO list :wink:

···

On Thu, 26 Feb 2004 15:12:11 +0900, Peña, Botp wrote:


Simon Strandgaard

  1. can you extend gray background of comments page wide?

Don’t know how to do it. I have played around with the
display property, but it seems to be rather difficult.

span.comment {
display: block;
/padding-right: %100;/
background-color: rgb(180, 180, 180);
}

I couldn’t solve it. Suggestions is appreciated (need help).

Well you could make it a div instead of a span, guarateeing it would
fill the width available.

Charles Comstock

I have just tried out what you suggest (making it a div), but
now comment occupies the whole line… from left border to right border.

How the output should be
‘=begin$(?m).*?^=end$’ # multiline comment

But with divs the output is like this
‘=begin$(?m).*?^=end$’

multiline comment

Am I doing something wrong… the errornous output is here
http://neoneye.dk/syntax_error.html

Please suggest code which demonstrates how to do the trick.

···

On Thu, 26 Feb 2004 06:33:03 -0600, Charles Comstock wrote:

  1. can you extend gray background of comments page wide?

Don’t know how to do it. I have played around with the
display property, but it seems to be rather difficult.

span.comment {
display: block;
/padding-right: %100;/
background-color: rgb(180, 180, 180);
}

I couldn’t solve it. Suggestions is appreciated (need help).

Well you could make it a div instead of a span, guarateeing it would
fill the width available.


Simon Strandgaard

Simon Strandgaard wrote:

  1. can you extend gray background of comments page wide?

Don’t know how to do it. I have played around with the
display property, but it seems to be rather difficult.

span.comment {
display: block;
/padding-right: %100;/
background-color: rgb(180, 180, 180);
}

I couldn’t solve it. Suggestions is appreciated (need help).

Well you could make it a div instead of a span, guarateeing it would
fill the width available.

I have just tried out what you suggest (making it a div), but
now comment occupies the whole line… from left border to right border.

How the output should be
‘=begin$(?m).*?^=end$’ # multiline comment

But with divs the output is like this
‘=begin$(?m).*?^=end$’

multiline comment

Am I doing something wrong… the errornous output is here
http://neoneye.dk/syntax_error.html

Please suggest code which demonstrates how to do the trick.


Simon Strandgaard

Hmm, I forgot about that problem. Well there is one thing I can think
of, if you wrap each line in a

but then shove the commented
part into a span, and the non commented part into another span. Then
you either set the commented section of the span to %100 width, which I
think shouldn’t actually squeeze out the other span, or you do some
stuff with align: left, and float: right, or something like that. I
don’t know I will think on it when I am less tired.

Charlie

···

On Thu, 26 Feb 2004 06:33:03 -0600, Charles Comstock wrote: