Search found 76 matches

by Erik1984
Oct 05, 2013 23:42
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

I checked out the scintilla source from mercurial, made the changes and uploaded a patch:
https://sourceforge.net/p/scintilla/fea ... ests/1023/
by Erik1984
Oct 05, 2013 19:07
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

Thanks, now font colors are fixed too. Haven't got the chance to get anything upstream although I'm looking around how to do this. I made a fork of Geany on GitHub which includes your patches https://github.com/fbcoder/geany . A pull request is an option but they suggest to change Scintilla code ups...
by Erik1984
Oct 04, 2013 15:42
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

One thing: In your screenshot the comment color is light gray. Here the single line comments are red and the multiline comments are just black (as normal text). Where can I change the colors of the comment blocks?

Image
by Erik1984
Oct 04, 2013 13:00
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

I tried to apply your patches to the source tree of 1.23.1 Just overwriting the respective files in the 1.23.1 source tree gave errors when compiling. Took me a while to find out which pieces you had changed and only applying those changes to the new source files. It seems like most of your work was...
by Erik1984
Oct 03, 2013 18:18
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

Thanks again TJF! Unfortunately I run into an error when compiling that source package. ./configure was OK after installing the dev package for gtk2 make This reports errors in the file tm_tag.c tm_tag.c: In function ‘tm_tag_unref’: tm_tag.c:448:21: error: expected ‘)’ before ‘__attribute__’ tm_tag....
by Erik1984
Oct 03, 2013 15:29
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Re: Multiline comments in Geany, how?

Thanks TJF. It would be great if those changes were adopted upstream. For the time being: Could you share your version of the Geany source?
by Erik1984
Oct 03, 2013 14:05
Forum: Linux
Topic: Slightly modified syntax hightlighting for Kate
Replies: 1
Views: 5308

Slightly modified syntax hightlighting for Kate

Not really a question, just a file to share. I made a slight adjustment to the FreeBASIC syntax highlighting file for Kate. The new file can be found here: https://gist.github.com/fbcoder/6777920 This is just the default file with added support for multiline comments. When you put it in the folder ~...
by Erik1984
Oct 03, 2013 13:43
Forum: Linux
Topic: Multiline comments in Geany, how?
Replies: 17
Views: 6586

Multiline comments in Geany, how?

Geany is a great editor for FreeBASIC in Linux. However multiline comments still don't seem to get handled correctly for FreeBASIC. I have looked in the filetype definition file for FB (/usr/share/geany/filetypes.freebasic) and the relvant part is: # single comments, like # in this file comment_sing...
by Erik1984
Apr 03, 2013 21:03
Forum: Beginners
Topic: Replacing a single color with another in an image
Replies: 7
Views: 1299

Re: Replacing a single color with another in an image

LOL, nice work dodicat!
by Erik1984
Apr 03, 2013 14:10
Forum: Beginners
Topic: Replacing a single color with another in an image
Replies: 7
Views: 1299

Re: Replacing a single color with another in an image

T(h)anks a lot guys :) This seems exactly what I was looking for.
by Erik1984
Apr 02, 2013 15:30
Forum: Beginners
Topic: Replacing a single color with another in an image
Replies: 7
Views: 1299

Replacing a single color with another in an image

For a puzzle game I'm writing I load a simple bmp sprite of a tank I've drawn. In the image the body of the tank is blue but I want tanks of different colors. Should I loop over all pixels and pset all blue pixels to the desired value or is there a built in command to do this?
by Erik1984
Mar 19, 2013 11:47
Forum: Linux
Topic: Free Basic in latest Ubuntu
Replies: 10
Views: 11113

Re: Free Basic in latest Ubuntu

I can confirm dkl's approach works for 64 bit Ubuntu 12.10. If you use Geany as your editor you can change the compile command so it includes -l stdc++ (that's what I did).
by Erik1984
Mar 17, 2013 22:00
Forum: Beginners
Topic: 2-D Array of pointers to UDT all point to zero
Replies: 12
Views: 1505

Re: 2-D Array of pointers to UDT all point to zero

Thanks everyone! So basically two solutions for the dynamic array problem. The ptr ptr ptr looks complicated indeed :P but as you explain it it makes sense. Regarding the forward declaration: Was it always possible to use a pointer to a UDT as a type for a member of that UDT? I recalled you needed a...
by Erik1984
Mar 17, 2013 20:33
Forum: Beginners
Topic: 2-D Array of pointers to UDT all point to zero
Replies: 12
Views: 1505

Re: 2-D Array of pointers to UDT all point to zero

FB doesn't allow dynamic arrays inside udts ... It does compile with the redim statement in place. I can try to leave it out though and see if it makes any difference. Thanks. Thanks!! it works now without the redim :) Code works fine without it. The only thing it can't handle now is maps larger th...

Go to advanced search