Hi,
We are using the Actipro SyntaxEditor with Python syntax highlighting and were wondering whether there is any built-in setting, add-on, or recommended approach to flag common language mistakes that are syntactically valid text but semantically incorrect Python.
For example:
test = true
test2 = True
In Python, True is the valid boolean literal, while true is not defined and will result in a runtime error (unless a variable named true exists).
Currently, both lines appear identical in the editor. The editor does not visually indicate that true is likely incorrect, so the issue is only discovered when the script is executed.
Is there any functionality available that could:
- Highlight unknown identifiers differently from Python keywords/built-in constants?
- Perform semantic analysis beyond syntax highlighting?
- Provide warnings for commonly mistaken keywords such as
truevsTrue,falsevsFalse,nonevsNone, etc.? - Integrate with a Python parser or analyzer that can surface such issues directly in the editor?
Our goal is not necessarily to have full IntelliSense or advanced static code analysis implemented directly by SyntaxEditor. We are aware that tools such as Pyright or Ruff can detect issues like undefined names and other code-quality problems.
However, we'd like to understand what capabilities SyntaxEditor provides out of the box. Is there any built-in functionality that can visually indicate potentially incorrect identifiers, undefined names, or common Python mistakes.
Thanks!