A plugin to spell check comments in source codes can be found here: http://svn.berlios.de/svnroot/repos/spellchecker/trunk (http://svn.berlios.de/svnroot/repos/spellchecker/trunk).All I can say: Awesome! I am using it for some time now. It works very well.
PS2: is it difficult to implement configuration where can be set spellchecked lexer "classes"? (for example, i would be happy, if I could disable spellchecking of strings, but at the same time have enabled spellchecking of documentation blocks)Remove the indices 6 and 12 from Language "C/C++" in OnlineSpellChecking.xml. This removes the checks of Strings in C/C++ files. The indices/names are from the lexer configuration files.
I'd like to see this plugin added to contrib too!
I also agree!!! This is a great plugin!!!I'd like to see this plugin added to contrib too!
Me too :D
I cannot reproduce this bug. I am testing it with svn6386 Code::Blocks with no modifications to the C::B code.thanks for your reply.
Does it work with the trunk code without the patch?
#ifdef CB_STATUS_BAR
,m_fld(NULL)
#endif
When building this plugin using C::B worspace .. it creates this directory:The xml file is named "OnlineSpellChecking.xml" and contains a list of indices (to check in) for every lexer-language.
CodeBlocksSVN\src\devel\share\CodeBlocks\SpellChecker
with one xml file.
Then I run update.bat (using WinXP), which should copy this directory into "output" folder ... but this does not happens .. is this only my problem? Without this configuration file is plugin not functional.
...
@ollydbg:When building this plugin using C::B worspace .. it creates this directory:The xml file is named "OnlineSpellChecking.xml" and contains a list of indices (to check in) for every lexer-language.
CodeBlocksSVN\src\devel\share\CodeBlocks\SpellChecker
with one xml file.
Then I run update.bat (using WinXP), which should copy this directory into "output" folder ... but this does not happens .. is this only my problem? Without this configuration file is plugin not functional.
...
regards,
danselmi
Thanks for the help, it works now. So we need to copy the folder (containing "OnlineSpellChecking.xml" )
from
E:\code\cb\cc_branch\src\devel\share\CodeBlocks\SpellChecker
to
E:\code\cb\cc_branch\src\output\share\CodeBlocks\SpellChecker
:D
A plugin to spell check comments in source codes can be found here: http://svn.berlios.de/svnroot/repos/spellchecker/trunk (http://svn.berlios.de/svnroot/repos/spellchecker/trunk).Could you build dll plugin for codeblocks-10.05 windows xp 32bit?
||warning: auto-importing has been activated without --enable-auto-import specified on the command line.|
||Info: resolving TiXmlString::nullrep_ by linking to __imp___ZN11TiXmlString8nullrep_E |
||Info: resolving vtable for TiXmlDocument by linking to __imp___ZTV13TiXmlDocument |
||Info: resolving vtable for wxDialogHelper by linking to __imp___ZTV14wxDialogHelper |
||Info: resolving vtable for wxScrollingDialog by linking to __imp___ZTV17wxScrollingDialog |
By the way, has anybody tested the "cbStatusBar" patch?I am using it literally since day one. ;-) No issues, except that for the spellchecker the field is always too small for me and instead of "en-EN" I see "en-". Also, it looks a bit ugly as the statusbar has a grey background, but the label is on white background.
how about a commit of that status bar patch on trunk, cc, debug ?Without any use as of e.g. the SpellChecker plugin you won't see much difference. Also I remember that danselmi ones said it's only a feasibility study.
Therefore we should think about what could be easier or reasonable if the status bar offers such a functionality.True. I would (however) wait for danselmi's answer on that topic concerning the readiness:
Also I remember that danselmi ones said it's only a feasibility study.
It was a feasibility study, but I completely reworked it since then.Therefore we should think about what could be easier or reasonable if the status bar offers such a functionality.True. I would (however) wait for danselmi's answer on that topic concerning the readiness:Also I remember that danselmi ones said it's only a feasibility study.
- windows build ok ?Yes.
- everything portable ?Looks like that, yes.
What things might be blocking at this moment ?Not really stopping, but something to think about: You'll need a dictionary for your target language which I don't want to put into SVN (it makes no sense). Without that SpellChecker will not work, so we need some clarification (e.g. on first start) what to do and where to get them. That's a "feature" which is missing.
[...]
- dependencies to things outside CB ?
The following points are still open:I've applied your patch (in a modified version) to trunk for testing. I am using it since "day 1" without any issues. If somebody complains we can revert this commit easily. In addition I would welcome if you apply the project clean-up patch attached to this post. It modifies the project files to be more consistent with the other plugins.
- The status bar patch is not reviewed (or at least I have no feedback)
... In addition I would welcome if you apply the project clean-up patch attached to this post. It modifies the project files to be more consistent with the other plugins.Applied. I really like to thank MortenMacFly for all the tests/patches/assistance.
Is now solved in rev 39.
- The personal dictionary does not change if the active language changes
So I have no more open points!I have some: After the last update SpellChecker keeps asking me on startup of C::B to setup the folders to the dictionaries (which are correct btw). I assume it keeps asking because I don't have index files for the dictionaries. Unfortunately I don't know where to get them (the rest I got from OpenOffice.org) and as it works well without, too I would suggest you make the index file optional to avoid this bugging on startup.
I have some: After the last update SpellChecker keeps asking me on startup of C::B to setup the folders to the dictionaries (which are correct btw).Do you mean the AnnoyingDialog? Does it ask even after you told it to "Don't Annoy me again!"?
Do you mean the AnnoyingDialog? Does it ask even after you told it to "Don't Annoy me again!"?Yes I mean that. And no: It does not ask anymore. However, as not having the index file does not limit the functionality I believe this dialog should not show up every time. Sure thing that the other two files are required and setup correctly. My point is, that for some dictionaries you don't get the index files. So the dialog would impose you did something wrong which isn't the case.
...wait! I had a look at the code: You seem to always show this dialog, no matter if the settings are OK or not. Is that right? I think in that case you really should check if the user needs to be informed - that's only the case when the settings are incorrect. Otherwise this will surely lead to confusion (as in my case... ;-)).So, I added a check if dictionaries are present and the dialog wil not be shown then.
So, I added a check if dictionaries are present and the dialog wil not be shown then.Aaaah! Nice. :-) :)
SpellChecker is has a problem on the second splitted view: After splitting, the misspelled words are underlined with a single straight black line instead of a squiggly red underline. I will take a look at it if I find some time( Laube - some more free time;-)?If I find time I will look into it also.
SpellChecker is has a problem on the second splitted view: After splitting, the misspelled words are underlined with a single straight black line instead of a squiggly red underline. I will take a look at it if I find some time( Laube - some more free time;-)?
stcr->SetIndicatorCurrent(GetIndicator());
I upgraded the Ubuntu to 10.10 and download CB 10.05 from repo with its SDK.SellChecker won't work with 10/05. It requires a patch applied to trunk of C::B after the release. Thus you need to compile C::B from trunk yourself to use this plugin. This will also make available all libraries you are asking for.
Mmmh... I just noticed that the option to change the language from the statusbar has gone in my builds...?! The statusbar does not show these elements anymore. Anybody else experiencing this?It is because DoCreateStatusBar() gets called after ScanForPlugins() since rev6841. Additionally, plugins were not able to create their fields if the Statusbar was not visible at startup. The attached patch solves the problem (statusbar shows the mentioned field again).
Dammed. This slipped through. Who did this and why?! (I'll have a look...).Mmmh... I just noticed that the option to change the language from the statusbar has gone in my builds...?! The statusbar does not show these elements anymore. Anybody else experiencing this?It is because DoCreateStatusBar() gets called after ScanForPlugins() since rev6841.
Dammed. This slipped through. Who did this and why?! (I'll have a look...).It was made to store the visible/hidden-state in the config to know it at startup (the patch does not remove this feature).
There is/remains the problem that the statusbar is not positioned/sized correctly when it was hidden. (hide statusbar, resize cb, make the statusbar visible again! (resize cb and the statusbar is again positioned correctly) I try to look into this tomorrow.)Is solved with the new patch.
Is solved with the new patch.Applied in trunk after succesful testing. Thanks!
Index: SpellCheckerPlugin.cpp
===================================================================
--- SpellCheckerPlugin.cpp (revision 41)
+++ SpellCheckerPlugin.cpp (working copy)
@@ -17,6 +17,11 @@
*
*/
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <configmanager.h>
+ #include <cbeditor.h>
+ #include <editormanager.h>
+#endif
#include <configurationpanel.h>
#include <editor_hooks.h>
#include <cbstyledtextctrl.h>
Index: OnlineSpellChecker.cpp
===================================================================
--- OnlineSpellChecker.cpp (revision 41)
+++ OnlineSpellChecker.cpp (working copy)
@@ -1,6 +1,11 @@
#include "OnlineSpellChecker.h"
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <cbeditor.h>
+ #include <editormanager.h>
+ #include <manager.h>
+#endif
#include <editorcolourset.h>
#include <cbstyledtextctrl.h>
#include "SpellCheckEngineInterface.h"
Index: SpellCheckHelper.cpp
===================================================================
--- SpellCheckHelper.cpp (revision 41)
+++ SpellCheckHelper.cpp (working copy)
@@ -19,6 +19,10 @@
#include "SpellCheckHelper.h"
#include <sdk.h> // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <configmanager.h>
+ #include <logmanager.h>
+#endif
#include "SpellCheckerPlugin.h"
SpellCheckHelper::SpellCheckHelper()
{
Index: SpellCheckerConfig.cpp
===================================================================
--- SpellCheckerConfig.cpp (revision 41)
+++ SpellCheckerConfig.cpp (working copy)
@@ -19,6 +19,10 @@
#include "SpellCheckerConfig.h"
#include "SpellCheckerPlugin.h"
#include "sdk.h" // Code::Blocks SDK
+#ifndef CB_PRECOMP
+ #include <wx/dir.h>
+#endif
+
#include "configmanager.h"
#define CFG_SPELLCHECK_ENABLE_ONLINE_CHECK _T("/SpellChecker/EnableOnlineChecker")
yeah the post build stuff is a direct xcopy console command instead of a portable squirrel script...
luckily I believe the syntax is the same though so just replace instances of xcopy with cp and you should be good.
Install hunspell-dev/-devel or whatever is called on you distro...
Is this plugin somewhere available in a version to install with the plug-in-manager on a windows-computer (xp and 7)?You can use this:
Maybe it's time to merge the sources in the main repo anyways...No, we should provide better SDK, so people could build it themselves.
I don't know what you mean. Can you explain?Maybe it's time to merge the sources in the main repo anyways...No, we should provide better SDK, so people could build it themselves.
Is this plugin somewhere available in a version to install with the plug-in-manager on a windows-computer (xp and 7)?
You can use this:
http://forums.codeblocks.org/index.php/topic,13234.msg88948.html#msg88948
Maybe it's time to merge the sources in the main repo anyways...
When do you think it may be thinkable for you to include this plugin into the group of default-plugins?I guess asap...?! ;-)
// namespace
Is this 'add to dictionary' global for all packages using hunspell or it is codeblocks only?After a look into the code and some debugging:
$ ./bootstrap && ./configure --prefix=/home/tpetrov/software/ --with-contrib-plugins=all,-ToolsPlus,-FileManager,-NassiShneiderman,-codesnippets,-spellchecker --disable-pch --enable-debug
which: no dch in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/tpetrov/bin)
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable debugging... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for library containing gzopen... -lz
checking for library containing BZ2_bzopen... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the open files list plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the abbreviations plugin... yes
checking whether to keep prebuild windows dll's in dist-tarball... yes
checking which (if any) contrib plugins to build... Unknown contrib plugin -ToolsPlus, ignoring
all -ToolsPlus -FileManager -NassiShneiderman -codesnippets -spellchecker
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0... yes (version 2.8.12)
checking for wxWidgets static library... no
checking for wxWidgets platform... wxGTK
checking for pkg-config... yes
checking for GTK2... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details.
Autotools build system is broken both in trunk and in debuggers branch on my CentOS 5.x system.
Here is the log:Code$ ./bootstrap && ./configure --prefix=/home/tpetrov/software/ --with-contrib-plugins=all,-ToolsPlus,-FileManager,-NassiShneiderman,-codesnippets,-spellchecker --disable-pch --enable-debug
which: no dch in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/tpetrov/bin)
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking target system type... x86_64-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable debugging... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking whether closedir returns void... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for atexit... yes
checking for getcwd... yes
checking for isascii... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strrchr... yes
checking for strstr... yes
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for library containing gzopen... -lz
checking for library containing BZ2_bzopen... no
checking whether to build the source formatter plugin... yes
checking whether to build the autosave plugin... yes
checking whether to build the class wizard plugin... yes
checking whether to build the code completion plugin... yes
checking whether to build the compiler plugin... yes
checking whether to build the debugger plugin... yes
checking whether to build the default MIME handler plugin... yes
checking whether to build the open files list plugin... yes
checking whether to build the foreign projects importer plugin... yes
checking whether to build the scripted wizard plugin... yes
checking whether to build the to-do plugin... yes
checking whether to build the abbreviations plugin... yes
checking whether to keep prebuild windows dll's in dist-tarball... yes
checking which (if any) contrib plugins to build... Unknown contrib plugin -ToolsPlus, ignoring
all -ToolsPlus -FileManager -NassiShneiderman -codesnippets -spellchecker
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.8.0... yes (version 2.8.12)
checking for wxWidgets static library... no
checking for wxWidgets platform... wxGTK
checking for pkg-config... yes
checking for GTK2... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.
Alternatively, you may set the environment variables GTK2_CFLAGS
and GTK2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details.
I'll test on Monday, when I'm back at work...No need to, the issue is fixed in trunk (svn r7369) and debugger-branch (svn r7370).
Note that if there is a possibility the first call to PKG_CHECK_MODULES might not happen, you should be sure to include an explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
char const *str="\tword";
I have also a feature request, can you add a dialog for editing/viewing the words added to the custom dictionary?Configure a tool that starts the internal editor on the user-defined dictionaries (based on macros)?! ;-)
CodeThe spellchecker ignores the \t and think, that I've typed tword.char const *str="\tword";
Can you make it to know about C/C++ escape characters?
I have also a feature request, can you add a dialog for editing/viewing the words added to the custom dictionary?
...and here:
2. In the SpellChecker settings (when not installed Dictionary) the checkbox "Enable online spell checker" inaccessible, and so impossible
to switch off SpellChecker (it's only accessible when Dictionary is installed).
...
...
how can i disable SPELL CHECKING, the checkbox is greyed out (but enabled) and every, really every word is underlined as not recognized!.
...
Index: SpellCheckerConfig.cpp
===================================================================
--- SpellCheckerConfig.cpp (revision 7390)
+++ SpellCheckerConfig.cpp (working copy)
@@ -95,6 +95,9 @@
cont = dir.GetNext(&strfilename);
}
}
+ // disable online checker if there are no dictionaries found
+ if (m_dictionaries.empty())
+ m_EnableOnlineChecker = false;
}
const std::vector<wxString> &SpellCheckerConfig::GetPossibleDictionaries()const
{
...
if you have a string in the code likeCodeThe spellchecker ignores the \t and think, that I've typed tword.char const *str="\tword";
Can you make it to know about C/C++ escape characters?
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?I also request this feature. :D
It's very important for a portable C::B works.
Thanks.
Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?I hope this does the trick.
It's very important for a portable C::B works.
Thanks.
Thanks, I just test this patch, and it works fine.Is it possible to make support $(DATAPATH) and other CB global variables in the directory path (Dictionaries, Thesauri, Bitmaps)?I hope this does the trick.
It's very important for a portable C::B works.
Thanks.
$(CODEBLOCKS)\share\CodeBlocks\SpellChecker
Hopefully some dev can put this patch to trunk.I tried it myself meanwhile and committed accordingly. Thanks!
i A hunspell-fr - French dictionary for hunspell
i A libhunspell-1.2-0 - spell checker and morphological analyzer (
if (m_pSpellUserInterface != NULL)
delete m_pSpellUserInterface;
only the verification comments.but can I add the full text file verification (*.txt, of course without highlighting) to 'wxSpellChecker' ?
hello,
I just downloaded 'svn7550', which works well under Vista.
I start to use 'wxSpellChecker' with C + +. It seems to work fine.
page http://wiki.codeblocks.org/index.php?title=SpellChecker (http://wiki.codeblocks.org/index.php?title=SpellChecker) indicatesQuoteonly the verification comments.but can I add the full text file verification (*.txt, of course without highlighting) to 'wxSpellChecker' ?
<Language name="Plain text" index="0" />
Sure, just add
Code:
<Language name="Plain text" index="0" />
to your OnlineSpellChecking.xml file and restart codeblocks.
You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus1. F10 is reserved key for the GTK menu and cannot be set by the applications.
You can add keyboard shortcuts : F10 to Spelling, Shift-F10 to Thesaurus1. 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.
Dictionaries->download
Try :
http://wiki.codeblocks.org/index.php?title=SpellCheckerQuoteDictionaries->download
Try :
http://wiki.codeblocks.org/index.php?title=SpellCheckerQuoteDictionaries->download
Thanks!! :D
Working flawlessly now!
Have you tried to right click a marked word and checked "Spelling Suggestions for 'wrongword'"?
I will adjust the wiki...
||=== Build: hunspell in SpellChecker (compiler: GNU GCC Compiler x32) ===|
D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\SpellChecker\hunspell\src\hunspell\baseaffix.hxx|28|error: 'MAXCONDLEN' was not declared in this scope|
D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\SpellChecker\hunspell\src\hunspell\baseaffix.hxx|30|error: 'MAXCONDLEN_1' was not declared in this scope|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|