Tag Info

New answers tagged


Slightly different approach, based on "fixing" boxes too: DynamicModule[{}, Button["Close lines", fix @ InputNotebook[]] , Initialization :> ( fix[nb_NotebookObject] := fix /@ SelectedCells[nb]; fix[cell_CellObject] := NotebookWrite[cell, fix@NotebookRead@cell]; fix[cell_Cell] := MapAt[fix, cell, {1, 1}]; fix[l_List] := fix /@ l; ...


There are basically two ways to approach this. One would be to read the underlying expression in held form, apply the CompoundExpression to it and write it back. The problem with this approach is that it wouldn't preserve the individual formatting concerning e.g. linebreaks. For a decent "look" of the generated code you would need code which automatically ...

Top 50 recent answers are included