I'm constructing a DSL where some functions take a lot of data, often numerical. My idea was to allow editing these complex parámeters graphically (editing matrices, vectors, colors in some tool / properties window) and HIDE the ugly long parameter lists from the text view.
Example. We have a function that receives a 4x4 matrix:
Transform( 3.1415926523, 2.999291232, -0.0028838232, 0.9822893821, 0.15939482932, -1.2383848231, ... ) // 16 double const as parámeters
Instead, I would like to show this:
Transform(...) // When the cursor is inside this tag, the parameter matrix can be edited in a tool window (but whenever the file is parsed or saved, we get or save the full line)
The ellipsis (...) could be any special character representing the hidden text.
So that's my question, how could I do something like that?
I'll apreciate any suggestions or directions you could give. Thank you.
Example. We have a function that receives a 4x4 matrix:
Transform( 3.1415926523, 2.999291232, -0.0028838232, 0.9822893821, 0.15939482932, -1.2383848231, ... ) // 16 double const as parámeters
Instead, I would like to show this:
Transform(...) // When the cursor is inside this tag, the parameter matrix can be edited in a tool window (but whenever the file is parsed or saved, we get or save the full line)
The ellipsis (...) could be any special character representing the hidden text.
So that's my question, how could I do something like that?
I'll apreciate any suggestions or directions you could give. Thank you.