tuliob / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

How do I set start line number? #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My making Flip+Zooming Text Editor
which uses multiple editor pane but use same text source
something like this:
http://www.sigchi.org/chi97/proceedings/poster/leh-fg5.gif

I want to use jsyntaxpane show zoomming Code but i can't find the way 
to set different start line number.
Please help me.

Thank you.

Original issue reported on code.google.com by room3stu...@gmail.com on 12 Dec 2009 at 11:36

GoogleCodeExporter commented 9 years ago
Probably the best way is to extend the LineNumberRuler class in
jsyntaxpane.components package.  You then need to somehow pass the start line 
to that
class, and update the component whenever it is changed (Property change maybe).
The line numbers are painted in the class's paintCOmponent.  It should be easy 
to add
the start line property.

Original comment by ayman.al...@gmail.com on 22 Dec 2009 at 8:34