When I write gibberish in the editor and save the file. Code Blocks doesn't seem to be aware of the error.
It's only when I try to build the project it gives an error. That too just a mark on the corresponding line in the editor and not the specific word.
I don't know if I am supposed to install some external extension or simple turn on something in the settings.
I searched up this problem and visited multiple issues, but they were all about syntax highlighting issues.
(Idk how attaching images to post works, I tried)
Hate to say that, but highlighting is not a spellchecking. It is just enhance readability of the code, nothing more.
You can detect errors in C/C++ only by compiler or tools like lint.
Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?
Quote from: kakas on April 08, 2024, 08:41:39 PM
Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?
You might want to look at the CodeBlocks Nightly builds section. It contains CodeBlocks with a Clangd_client plugin which marks error in the left margin when you save a file.
https://forums.next.codeblocks.org/index.php/board,20.0.html
See this in order to enable it:
https://wiki.codeblocks.org/index.php/CB_Clangd_Client
Quote from: Pecan on April 09, 2024, 06:21:37 AM
Quote from: kakas on April 08, 2024, 08:41:39 PM
Is there anyway to get code blocks to highlight/underline specific errors in editor before compiling?
You might want to look at the CodeBlocks Nightly builds section. It contains CodeBlocks with a Clangd_client plugin which marks error in the left margin when you save a file.
https://forums.next.codeblocks.org/index.php/board,20.0.html
See this in order to enable it:
https://wiki.codeblocks.org/index.php/CB_Clangd_Client
Thanks :D!!!