Hello,
First of all, thanks a lot for Geany - I've started using it only recently, but
it's exactly what I needed; powerful, yet lightweight!
However, there is one issue that is really confusing to me - the way whitespace
is ignored during "word-jumping" (for lack of a better term - i.e. using
CTRL+Right/Left to move the cursor).
It's a bit tricky to explain, so here's an example:
function foo() {
lorem = "ipsum dolor sit amet";
}
If I use CTRL+Right to move the cursor, it will jump as follows (asterisk
indicates cursor positions):
*function* foo*() {
lorem* = "ipsum*";*
}*
However, I would expect it to move like this:
*function* foo()* {*
*lorem* =* "*ipsum*";*
*}*
Is there any way to change this behavior?
Thanks!
Hello friends! This is my first post to this list, so hello to everyone :-)
I searched through the archives prior to posting (and Googled like crazy
;-), but if this particular problem has been discussed previously, and I
missed it, I am sorry.
I am trying to get the GeanyDebug plugin to work on my Ubuntu Hardy box with
Geany 0.14. My problem is that when I try to set a breakpoint, either
specifying a function name or source file line number I get the error
message:
"No source file named /path/to/my/source/file.cpp"
When I run gdb from command line in geany everything works great.
So, any ideas anyone?
/Micke
Is there a simple way to integrate external tools like PyLint or JSLint?
I know I can execute external tools (e.g. compilers), but how can their output
(e.g. warnings, errors) be integrated into the code being displayed by Geany?
Any help would be greatly appreciated!
All,
I am attempting to add filetype and syntax highlighting support for R
scripts. I am following the steps outlined in HACKING. I've added
GEANY_FILETYPES_R to filetypes.h, initialized GEANY_FILETYPES_R in
init_builtin_filetypes(), and updated data/filetype_extensions.conf.
After rebuilding Geany, R scripts show up in the Filetypes menu under
scripting languages and Geany recognizes *.R and *.r files as R scripts.
So, the first step was successful.
On to the syntax highlighting. I shamelessly stole LexR.cxx from
scintilla and I've created data/filetypes.r. I then wrote the
styleset_r_init() and styleset_r() functions, added
init_styleset_case(GEANY_FILETYPES_R, r) to highlighting_init_styles(),
and added styleset_case(GEANY_FILETYPES_R, r)
to highlighting_set_styles().
Unfortunately, the only style that is applied to R scripts is the
default style. If I change the hex color codes in highlighting.c or in
data/filetypes.r, the new colors will be used. However, none of the
other styles are being used.
Below are my init_styleset_case() and styleset_case() functions. I'm
sure it's something I've done wrong, but I can't see the problem. A
pointer in the right direction would be appreciated.
TIA
Andrew
static void styleset_r_init(gint ft_id, GKeyFile *config, GKeyFile
*config_home)
{
new_style_array(GEANY_FILETYPES_R, 12);
get_keyfile_hex(config, config_home, "styling", "default", "0x000000",
"0xffffff", "false", &style_sets[GEANY_FILETYPES_R].styling[0]);
get_keyfile_hex(config, config_home, "styling", "comment", "0x000000",
"0xffffff", "false", &style_sets[GEANY_FILETYPES_R].styling[1]);
get_keyfile_hex(config, config_home, "styling", "kword", "0xF70808",
"0xffffff", "false", &style_sets[GEANY_FILETYPES_R].styling[2]);
get_keyfile_hex(config, config_home, "styling", "operator", "0x000fff",
"0xffffff", "false", &style_sets[GEANY_FILETYPES_R].styling[3]);
get_keyfile_hex(config, config_home, "styling", "basekword",
"0x000fff", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[4]);
get_keyfile_hex(config, config_home, "styling", "otherkword",
"0x119911", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[5]);
get_keyfile_hex(config, config_home, "styling", "number",
"0x000fff", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[6]);
get_keyfile_hex(config, config_home, "styling", "string",
"0x119911", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[7]);
get_keyfile_hex(config, config_home, "styling", "string2",
"0x119911", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[8]);
get_keyfile_hex(config, config_home, "styling", "identifier",
"0x119911", "0xffffff", "true",
&style_sets[GEANY_FILETYPES_R].styling[9]);
get_keyfile_hex(config, config_home, "styling", "infix", "0x119911",
"0xffffff", "true", &style_sets[GEANY_FILETYPES_R].styling[10]);
get_keyfile_hex(config, config_home, "styling", "infixeol", "0x119911",
"0xffffff", "true", &style_sets[GEANY_FILETYPES_R].styling[11]);
style_sets[GEANY_FILETYPES_R].keywords = g_new(gchar*, 2);
get_keyfile_keywords(config, config_home, "keywords", "primary",
GEANY_FILETYPES_R, 0, "if source array matrix diag solve for");
style_sets[GEANY_FILETYPES_R].keywords[1] = NULL;
get_keyfile_wordchars(config, config_home,
&style_sets[GEANY_FILETYPES_R].wordchars);
}
static void styleset_r(ScintillaObject *sci)
{
const filetype_id ft_id = GEANY_FILETYPES_R;
styleset_common(sci, 5, ft_id);
apply_filetype_properties(sci, SCLEX_R, ft_id);
SSM(sci, SCI_SETKEYWORDS, 0, (sptr_t)
style_sets[GEANY_FILETYPES_R].keywords[0]);
set_sci_style(sci, STYLE_DEFAULT, GEANY_FILETYPES_R, 0);
set_sci_style(sci, SCE_R_DEFAULT, GEANY_FILETYPES_R, 0);
set_sci_style(sci, SCE_R_COMMENT, GEANY_FILETYPES_R, 1);
set_sci_style(sci, SCE_R_KWORD, GEANY_FILETYPES_R, 2);
set_sci_style(sci, SCE_R_OPERATOR, GEANY_FILETYPES_R, 3);
set_sci_style(sci, SCE_R_BASEKWORD, GEANY_FILETYPES_R, 4);
set_sci_style(sci, SCE_R_OTHERKWORD, GEANY_FILETYPES_R, 5);
set_sci_style(sci, SCE_R_NUMBER, GEANY_FILETYPES_R, 6);
set_sci_style(sci, SCE_R_STRING, GEANY_FILETYPES_R, 7);
set_sci_style(sci, SCE_R_STRING2, GEANY_FILETYPES_R, 8);
set_sci_style(sci, SCE_R_IDENTIFIER, GEANY_FILETYPES_R, 9);
set_sci_style(sci, SCE_R_INFIX, GEANY_FILETYPES_R, 10);
set_sci_style(sci, SCE_R_INFIXEOL, GEANY_FILETYPES_R, 11);
}
When editing a .php document and typing {} in a document, geany crashes...
-H-
Somewhat of a backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47081729380176 (LWP 5222)]
0x000000000042fd66 in ?? ()
(gdb) bt
#0 0x000000000042fd66 in ?? ()
#1 0x0000000000430694 in ?? ()
#2 0x00002ad20df5299a in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#3 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0
#4 0x00002ad20df63af3 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#5 0x00002ad20df63cc3 in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#6 0x000000000048ed35 in ?? ()
#7 0x000000000049f4ff in ?? ()
#8 0x00000000004bd247 in ?? ()
#9 0x0000000000491309 in ?? ()
#10 0x00002ad20df5299a in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#11 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0
#12 0x00002ad20df63af3 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#13 0x00002ad20df66596 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
#14 0x00002ad20df5299a in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#15 0x00002ad20df626b8 in ?? () from /usr/lib/libgobject-2.0.so.0
#16 0x00002ad20df63af3 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#17 0x00002ad20df66596 in g_signal_emit_by_name ()
from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#18 0x00002ad20ccf8ec4 in gtk_im_context_simple_commit_char
(context=0x864990,
ch=125) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkimcontextsimple.c:1017
#19 0x00002ad20ccf969e in gtk_im_context_simple_filter_keypress (
context=0x864990, event=0x2db1a40)
at /build/buildd/gtk+2.0-2.12.0/gtk/gtkimcontextsimple.c:1253
#20 0x000000000048de4a in ?? ()
#21 0x00002ad20cd1915d in _gtk_marshal_BOOLEAN__BOXED (closure=0x7bace0,
return_value=0x7fff9e106a50, n_param_values=<value optimized out>,
param_values=0x7fff9e106b40, invocation_hint=<value optimized out>,
marshal_data=0x48e1d0)
at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmarshalers.c:84
#22 0x00002ad20df52a50 in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#23 0x00002ad20df62cc8 in ?? () from /usr/lib/libgobject-2.0.so.0
#24 0x00002ad20df638c7 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#25 0x00002ad20df63cc3 in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#26 0x00002ad20ce1f0ae in gtk_widget_event_internal (widget=0xae7ba0,
event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c:4675
#27 0x00002ad20ce2e1ab in IA__gtk_window_propagate_key_event
(window=0x7c61f0,
event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwindow.c:4935
#28 0x00002ad20ce30ffb in gtk_window_key_press_event (widget=0x7c61f0,
event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwindow.c:4965
#29 0x00002ad20cd1915d in _gtk_marshal_BOOLEAN__BOXED (closure=0x7bace0,
---Type <return> to continue, or q <return> to quit---
return_value=0x7fff9e1070e0, n_param_values=<value optimized out>,
param_values=0x7fff9e1071d0, invocation_hint=<value optimized out>,
marshal_data=0x2ad20ce30fc0)
at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmarshalers.c:84
#30 0x00002ad20df5299a in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#31 0x00002ad20df62cc8 in ?? () from /usr/lib/libgobject-2.0.so.0
#32 0x00002ad20df638c7 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0
#33 0x00002ad20df63cc3 in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#34 0x00002ad20ce1f0ae in gtk_widget_event_internal (widget=0x7c61f0,
event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkwidget.c:4675
#35 0x00002ad20cd125f9 in IA__gtk_propagate_event (widget=0x7c61f0,
event=0x2db1a40) at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:2291
#36 0x00002ad20cd13504 in IA__gtk_main_do_event (event=0x2db1a40)
at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:1537
#37 0x00002ad20d1e81dc in gdk_event_dispatch (source=<value optimized out>,
callback=<value optimized out>, user_data=<value optimized out>)
at /build/buildd/gtk+2.0-2.12.0/gdk/x11/gdkevents-x11.c:2351
#38 0x00002ad20e3bdfd3 in g_main_context_dispatch ()
from /usr/lib/libglib-2.0.so.0
#39 0x00002ad20e3c12dd in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00002ad20e3c15ea in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#41 0x00002ad20cd13883 in IA__gtk_main ()
---Type <return> to continue, or q <return> to quit---
at /build/buildd/gtk+2.0-2.12.0/gtk/gtkmain.c:1144
#42 0x000000000046ac26 in ?? ()
#43 0x00002ad20ee13b44 in __libc_start_main () from /lib/libc.so.6
#44 0x0000000000418549 in ?? ()
#45 0x00007fff9e1078a8 in ?? ()
#46 0x0000000000000000 in ?? ()
(gdb)
Here follows some typical compiler messages from mcs & gmcs (mono2).
Warnings follow the same format, just replacing "error" with "warning".
btw. I failed to make a block copy from the output window, each line
had to be right clicked on
its own ...
r.
Geoff
mcs /t:exe "testb.cs" -r:Mono.Data.SqliteClient,System.Data (in
directory: /home/user/duron/mono/gpsr)#
testb.cs (23,9): error CS0103: The name `bEndTag' does not exist in the
current context
testb.cs(28,16): error CS0103: The name `v' does not exist in the
current context
testb.cs(29,21): error CS0103: The name `v' does not exist in the
current context
testb.cs(29,42): error CS0103: The name `bEndTag' does not exist in the
current context
testb.cs (32,44): error CS0103: The name `v' does not exist in the
current context
testb.cs(34,21): error CS0103: The name `bEndTag' does not exist in the
current context
testb.cs(37,25): error CS0103: The name `bEndTag' does not exist in the
current context
Compilation failed: 7 error(s), 0 warnings
Compilation failed.
gmcs
testb.cs(26,20): error CS1002: Expecting `;'
testb.cs(28,13): error CS0266: Cannot implicitly convert type `char' to
`byte'. An explicit conversion exists (are you missing a cast?)
testb.cs(28,9): error CS0029: Cannot implicitly convert type `byte' to
`bool'
testb.cs(13,45): error CS0246: The type or namespace name
`SqliteConnection' could not be found. Are you missing a using
directive or an assembly reference?
###########################################This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.Formore information, connect to http://www.F-Secure.com/
hi,
i am using geany 0.13 on ubuntu hardy heron, and i would like to prevent
geany from scrolling past the end of the file. however the key
"scroll_stop_at_last_line"
is not in geany.conf (changing said key is, i understand, the prescribed way
of fixing the problem). moreover, adding the key with the value of true
doesn't have the desired effect. does anyone know what is going on?
thanks!
noah
hallo list,
i like geany verry much its simple, lightweight, stable and has all i need, except a possibility to change the optic of the editor itself.
can anyone help me to get a black background in geany?
regards
//robert