possibility to add own commands to highlights in IDE
Posted: Fri Jan 17, 2020 11:18 pm
When I move the cursor over a command in IDE, I will at bottom of IDE window see description of the command.
As an example, I move the cursor on top of SetFont, I will see the following:
SetFont(font$,size[,table]) -- change the current font
This is extremely useful and speeds up coding greatly.
However, I would also like to be able to add my own functions to this same highlight system.
There could be for example a system where I could at the beginning of code write:
#AddCommandToHighlight MySetFont, "MySetFont(font$,size[,table]) -- change the current font with mysetfont"
and now when I would move the cursor over "MySetFont" function, I could then see a similar highlight which would read:
MySetFont(font$,size[,table]) -- change the current font with mysetfont
Could this be done to the IDE someway?
And specifically in way that when I load my code or have to execute it once first, I could after that see those highlights until I close Hollywood again at which point they would be erased from memory since I might have same-named command in two different projects where function differs, and therefore I don't want them to be universal but rather that they are read every time I want to use them.
Of course, some way to save them so I don't need to load them every time would be a nice extra feature, as long as there is a way to erase them too. This way when working on a project I could keep them in memory loaded every time Hollywood is started, but when a project is done and I move on to a next project, I could erase them from memory and start from a clean slate again.
As an example, I move the cursor on top of SetFont, I will see the following:
SetFont(font$,size[,table]) -- change the current font
This is extremely useful and speeds up coding greatly.
However, I would also like to be able to add my own functions to this same highlight system.
There could be for example a system where I could at the beginning of code write:
#AddCommandToHighlight MySetFont, "MySetFont(font$,size[,table]) -- change the current font with mysetfont"
and now when I would move the cursor over "MySetFont" function, I could then see a similar highlight which would read:
MySetFont(font$,size[,table]) -- change the current font with mysetfont
Could this be done to the IDE someway?
And specifically in way that when I load my code or have to execute it once first, I could after that see those highlights until I close Hollywood again at which point they would be erased from memory since I might have same-named command in two different projects where function differs, and therefore I don't want them to be universal but rather that they are read every time I want to use them.
Of course, some way to save them so I don't need to load them every time would be a nice extra feature, as long as there is a way to erase them too. This way when working on a project I could keep them in memory loaded every time Hollywood is started, but when a project is done and I move on to a next project, I could erase them from memory and start from a clean slate again.