StrongEd
Phil Hanson (2558) 75 posts |
I’ll keep this thread for any StrongEd questions I have: Is there a way to show line numbers, and, is there a way to do a sort of double space like for instance: 5 <- Greyed out |
GavinWraith (26) 1563 posts |
This script applied to a StrongED window will put in line linenumbers, with every other line blank. It will also format the linenumber to a field of two digits (i.e good for 1 to 99). Change the 2 to 3 for 1 to 999.
|
Steve Pampling (1551) 8170 posts |
Which is, Phil, the reason I mentioned the scripting elements in StrongED. The scripting elements can use various script sources as Gavin has just demonstrated. |
Fred Graute (114) 645 posts |
Yes, but how depends on what it is you’re after exactly. To simply show what number a line has, counting from start of file, you can turn on line numbers. Click Adjust (right mouse button) over the Tick icon on the toolbar at the top of the StrongED view. Then click on LineNos and select Logical then click ‘OK’. Line numbers will now be shown in the left margin for each line shown in the view. If you only want line numbers for text lines (ie those that end with a newline) then select Physical. Display of line numbers as stored in a BASIC file is also possible by clicking Select (left mouse button) over the Tick icon. Then click on BASIC and untick the option ‘Strip line numbers’. Please note though that these line numbers are part of the text and that you’ll have to manually enter them for each new line that you add. If you’re not using line number references (GOTO et al.) and save BASIC files with line numbers starting at 1 with an increment of 1 (StrongED’s default settings) then you can simply turn on physical line numbers as they will be the same as the BASIC line numbers. This is probably the most convenient way.
You’ll need to do that manually by inserting an empty line, or change the line spacing if you want lines to be separated a bit more. Adjust click on Tick icon and increase the line spacing in the Display section (note, this will only effect new views). |
Phil Hanson (2558) 75 posts |
I have a particular way I want it too look and act. That is not StrongEd unfortunately. But that leads me to ask, how much of RiscOS app chrome can you change? |
Fred Graute (114) 645 posts |
StrongED is very flexible so if you let us know what you’re looking for we can tell you whether it’s possible and if so, how to achieve it.
You can change the window furniture and window/menu backgrounds by choosing a different theme (this affects the entire desktop). The resources (sprites, templates) used by an application can be altered to provide a different look and feel. |