Hi,
I'm trying to use the ParameterInfo to show information about PHP functions. It works fine, however, I would like to use the ParameterIndex to make the current parameter bold. How is this done best? I have tried to repopulate the Info collection on IntelliPromptParameterInfoParameterIndexChanged, but the changes are not reflected unless I call the Show() method, which in turn gives me some other problems. How should I act on this?
Also, what is the proper way to set the ValidTextRange? I read in the documentation that this has to be set for the ParameterIndex to be updated automatically. I just set it like this:
editor.IntelliPrompt.ParameterInfo.ValidTextRange = new TextRange(editor.SelectedView.Selection.EndOffset, editor.Text.Length);
But I assume there's a better way?
I'm trying to use the ParameterInfo to show information about PHP functions. It works fine, however, I would like to use the ParameterIndex to make the current parameter bold. How is this done best? I have tried to repopulate the Info collection on IntelliPromptParameterInfoParameterIndexChanged, but the changes are not reflected unless I call the Show() method, which in turn gives me some other problems. How should I act on this?
Also, what is the proper way to set the ValidTextRange? I read in the documentation that this has to be set for the ParameterIndex to be updated automatically. I just set it like this:
editor.IntelliPrompt.ParameterInfo.ValidTextRange = new TextRange(editor.SelectedView.Selection.EndOffset, editor.Text.Length);
But I assume there's a better way?