On Thursday, May 10, 2012 10:30:21 PM UTC-5, Ben Fritz wrote: > On Thursday, May 10, 2012 5:24:29 PM UTC-5, Tarlika Elisabeth Schmitz wrote: > > The output is placed in a <table>, and the line numbers are in a > > separate <td>. Consequently, it is possible to select the output code > > without grabbing line numbers. > > > > > This brings up the other main problem with the table method. Dynamic folding > relies on looking up a single element by ID in a javascript event, and then > modifying the class of that on the fly to show/hide the element. This single > element must therefore span parts of the foldcolumn, the entire line number, > and the entire line text. Doing this would not be possible in the table > layout. > > Perhaps, we can look it up by class instead of by ID. Or prepend a prefix > like LineText_ and LineNr_ and FoldC_ to the ID for each section. That is > certainly something to think about. It may be tricky but I think having > individual columns might be the best way to go forward. > > The other difficulty, however, is in the fact that wrapping may be turned > on. I can not think of a good way to get text wrapping to work in the table > so that the line numbers continue to align with the beginning of their > respective line. It might be possible to simply declare that unselectable > areas only work for non-wrapping text, but that would mean 2 completely > separate output methods. I would like to avoid that if possible. >
Also, I'd like to optionally make the fold text and diff filler uncopyable. But only if the chosen method readily supports it. The main problem is line numbers and fold column, I can live without fold text and diff filler. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
