Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
SpellChecker plugin
LETARTARE:
//*** Translated by Google ***//
--- Quote ---Sure, just add
Code:
<Language name="Plain text" index="0" />
to your OnlineSpellChecking.xml file and restart codeblocks.
--- End quote ---
Thank you very much for your answer
I tried with or without this change.
But in fact, simply select the desired word and then use either the context menu or the Edit menu for either a correction or a synonym.
But why select it, while for C + + comments just place the cursor on the word?
You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus
On the other hand, the translation of menu entries does not work (French svn 7451) on my pc (VISTA pack2) .
oBFusCATed:
--- Quote from: LETARTARE on November 24, 2011, 09:17:54 am ---You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus
--- End quote ---
1. F10 is reserved key for the GTK menu and cannot be set by the applications.
2. You can set some shortcuts for menu item using the keybinder/keyboard shortcuts plugin.
LETARTARE:
--- Quote from: oBFusCATed on November 24, 2011, 10:07:02 am ---
--- Quote from: LETARTARE on November 24, 2011, 09:17:54 am ---You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus
--- End quote ---
1. F10 is reserved key for the GTK menu and cannot be set by the applications.
2. You can set some shortcuts for menu item using the keybinder/keyboard shortcuts plugin.
--- End quote ---
I did not know, because these shortcuts were free on my version svn7550
so I tried ALT-F10 which is also free.
What the menu GTK ?
danselmi:
On windows it's ok to use F10 and ctrl-F10 for what ever you want. So use them in keybinder/keyboard shortcuts plugin.
@LETARTARE
Spelling is only possible over selected text (this is possibly wrong in plain text files but codeblocks is an IDE).
So select all (ctrl+a) followed by F10 will check the spelling of the whole file. This is independant of the highlight mode.
Alpha:
I have a suggestion to improve this plugin; currently, one of the separators used to split words is the single quote ('). This works correctly in most cases, however, if a contraction is used (ex. don't), the sections are split, resulting in invalid words.
To work around this problem, the plugin could:
1. Identify a word marked as misspelled
2. Check if the character(s) deliminating it from the next word is(are) exactly ' or \'
a. Process the concatenation of both words, with a single quote (') between them, as a single word
b. If it forms a correctly spelled word, mark it as such; otherwise treat as two separate words (again)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version