Opened 15 years ago
Last modified 15 years ago
#563 new enhancement
Line number handler in recipe editor
Reported by: | mpotter@… | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 0.7 |
Component: | General | Version: | 0.6b2 |
Keywords: | Cc: | ||
Operating System: |
Description
Idea comes from: "Better validation errors" from the Bitten Google Group, specifically the third post which was by anatoly techtonik.
Where there is a recipe error Bitten reports the line number and column. Using the current editor it is not always easy to find where this error is.
Suggestions:
- Add line numbers to the recipe editor.
- When there is an error, position the cursor in the editor (minimally) at the reported line and (ideally) column.
Attachments (0)
Change History (3)
comment:1 Changed 15 years ago by hodgestar
comment:2 Changed 15 years ago by anatoly techtonik <techtonik@…>
There is at least one with MIT license at http://stackoverflow.com/questions/1995370/html-adding-line-numbers-to-textarea The plugin will be even more awesome with resize feature like in Chrome.
comment:3 Changed 15 years ago by hodgestar
- Milestone changed from 0.6.1 to 0.7
More links from techtonik via IRC:
- http://www.switchonthecode.com/tutorials/javascript-tutorial-resizeable-textboxes
- http://www.switchonthecode.com/tutorials/javascript-controls-resizeable-textbox
- http://alan.blog-city.com/jquerylinedtextarea.htm
Osimons says a Jquery plugin is available in Trac 0.12dev so we can look at adding these sort of features for Bitten 0.7 (which is intended to have Trac 0.12+ support).
Does anyone know of a decent Javascript text editing widget that we could include? Obviously it also needs a Bitten-compatible license.