Creating a package that folds parts of a line


#1

I wanted to create a package where I can fold overly long HTML attributes. I have it running to the point that it replaces the original attribute values with three dots, and restores the original attribute values on second invocation. However that works only with changing the model. Which is clearly not what I want.

After looking through the code for line folding for quite a while now, I still can’t grasp the complete process. But I’ve seen enough to doubt that there is a reasonable way to do what I want.

Any input is greatly appreciated.


Folding C++ blocks (possible bug)
#2

There’s a related discussion here:

It’s essentially the same kind of idea, displaying something differently than it is stored.


#3

Thanks for the quick reply, despite the bad news. It’s always depressing seeing work done go to waste :pensive: