I was also thinking about this, maybe we can introduce another pair of block comment markers like (* ... *) that could nest with the existing markers /* ... */
I was also thinking about this, maybe we can introduce another pair of block comment markers like (* ... *) that could nest with the existing markers /* ... */
That should not be too difficult to implement.
But TextBlock .. End Textblock should work too.
If we do this, what do you expect to see in the editor:
- should the new comment or textblock contents have the comment color?
- should it have the normal color
And what should happen with tooltips etc.?
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
In older times before VO 2.8 I used textblocks in the program quite a lot to store SQL code/macro code in textblocks. I had overwritten the previously functions QOut and made a function GetTextblock() to return the textblock as a string to the program. It was a possibility to store texts with syntax other than VO nearby the text. When the QOut-Functions vanished with a newer VO version I started to store these textblocks in script filesoutside the program.
Now the textblock command as a type of "named" textblocks has returned in our macro scripts to store complex SQL code in macros scripts. The macros can retrieve these textblocks as GetTextblock ("xxx"), change some variables or add some code and then execute them.
So I haven't any direct need in X#, but it can be useful. It brought me useful ideas.
It's not exactly what you are doing, but in case you are not aware of it, X# has a feature to create such texts with the TEXT TO command which might be helpful: