Nicoedit 2.3 - text editor with lots of goodies

Stuff that has yet to be sorted into a category.
Message
Author
nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#21 Post by nikobordx »

Hi Barry,

Your idea is not bad, but i don't really know how to make this.
I don't know about the html language, and i don't think there is an api for converting a sourceview or textview to html.

I think the most simple way is to use a parser who automatically add the color for word in html format, probably with the replace function in regex ?

Another way is to use a converter, i know adobe propose a pdf to html online converter, you can use NicoEdit to edit your source file, export as pdf and convert with this tool ?
Site is: http://www.adobe.com/products/acrobat/a ... tools.html

Another thing, on your Genie intro web pages, you can change something to avoid confusion:
Me Nicolas (nikobordx) i have created the genie code in http://code.valaide.org and the nicoedit.
The other Nicolas (gege2061) is the creator of ValaIDE and the http://code.valaide.org web site.

I also add a comment on your blog (niko33) : http://puppylinux.com/blog/?viewDetailed=01182

See you,
Nicolas.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#22 Post by BarryK »

Hey,
I didn't know there are two Nicolas's! I thought you were the same guy!

HTML color markup... it's quite simple. All you have to do is use the <font> tag around the colored text, for example:

This is <font color="red">red</font> text and this is <font color="#ff0000">red</font> again.

This page explains the available colors:

http://snowwhite.it.brighton.ac.uk/~mas ... tml#COLOUR

So a "Copy with color markup" menu item would just have to insert that <font> tag into the text wherever the text has non-default color.

Then paste it into a web page, in say Composer or whatever is being used to edit the web page, and voila, nice colored code!

But, I don't know how to read the highlighted text from the text editor window complete with its formating information.
[url]https://bkhome.org/news/[/url]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

thanks

#23 Post by sc0ttman »

Thanks for this.. I love NicoEdit. Great for my PHP work! :)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#24 Post by seaside »

Hi Nicolas,

You've made a very nice editor which I would use regularly if you could change the search box behavior so that the search starts upon keying enter.

I am so used to a search being initiated after typing in the search term and pressing "enter" that when it doesn't happen, I think the program's frozen - then I realize I have to take my hands off the keys and move the mouse to the arrow button.

Also, if the "find next" function could be mapped to Ctl-g, that would allow a seamless and mouseless user experience.

Thanks for your work,
s

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#25 Post by caleb72 »

Hi Nicholas,

Have you noticed that in GtkSourceview there's a few keywords for Genie that are not highlighted as such? Notably "uses" and "construct".

Just wanted to see if it's just me.

Also - just an advice thing - is auto-indenting specified within the GtkSourceview configuration or is that the responsibility of the implementer?

If it's in GtkSourceview I'm wondering how difficult it can be to tinker with the language configuration files and improve the Genie support. I like clever auto-indenting. Does GtkSourceview offer code auto-completion at all?

There's alot of things I'd like NicoEdit to do - but I realise my request ends up being that I'd like NicoEdit to be Valaide. :oops:

Actually, not that I know you can use GtkSourceview with Anjuta I wonder if that's where I should be looking because then I can mix Python, Perl, Genie and more in a fairly well-established IDE (not that I've ever used it).

Regards
Caleb

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#26 Post by nikobordx »

Hi,

seaside:

The shortcut for "find next" is "F3" and F2 is for "find prev".
Ctrl-G is for "goto" line dialog.
Yes i will add enter as shorcut in next version, for the moment, after typing your word to search, press "F3".

caleb72 (I know who is behind this nickname :) ) :

The keyword "uses" is highlighted as violet, and "construct" is red, i don't know why on your computer you doesn't have this !
Auto-indenting is a function inside the Gtksourceview, i don't do anything.
Gtksourceview does not offer a code completion, i will looking the vapi for gtksourcecompletion and example available in c.

For everyone:

Remember, there was a time when NicoEdit was a tiny text reader, it merely served to open a file.
I do not think that I will include all these options, knowing that I'm not a real developer, i'm learning !
Some people want to change this small editor in true ide, which is not the purpose of starting.


If you want an ide for genie, you can wait a little while I finish my future program.
I am currently developing an IDE for genie, with code generator, it is well advanced but not enough to be published.
Using a language almost human, you can (for example):

sqlite_treeview = tree1
imagecol = Photo
stringcol = Name
stringcol = Surname
stringcol = Sex
end_sqlite_treeview

This code produces (the treeview, the treecolumns, the listestore, new row dialog, edit row dialog, and everything needed to load a sqlite database).
You will just be a little patient...

Nicolas.
Last edited by nikobordx on Wed 28 Oct 2009, 13:43, edited 1 time in total.

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#27 Post by nikobordx »

Hi Barry,

Thanks for your message.
I will try to create a parser when i have time.

See you,
Nicolas.

caleb72
Posts: 57
Joined: Fri 15 May 2009, 12:44

#28 Post by caleb72 »

That's cool Nicholas - I'm also a learner - just interested where to look for things.

I'm not expecting NicoEdit to be an everything IDE - I just thought you probably have some insight on this stuff having integrated the widget in your own project. I'm trying to work out what I should be looking for in an IDE (Anjuta looks interesting as it also includes a gtksourceview widget). For the moment I'm using NicoEdit which is fine while I'm learning.

Looks like you have a good version of genie.lang, but mine had these things missing. I found the one that Jamie put together for Genie and when I get home I'll locate it and send it to Barry for inclusion into a .pet.

Regards
Caleb

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

piping text into editors

#29 Post by wiak »

One facility that leafpad provided was the ability to pipe text into it (for example: echo "hello" | leafpad). I'm sorely missing that facility from a GUI editor, though the console editor mp in Puppy Wary does allow that. Is there any way to do it with Nicoedit or Geany that I'm perhaps missing (an optional argument or somesuch)? I don't really want to resort to using temporary files if I can avoid it.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#30 Post by technosaurus »

you could test the gtk build of minimum profit (mp) from triptico.com (there is a qt backend too)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#31 Post by aragon »

The gtk-version of mp could be found her

http://murga-linux.com/puppy/viewtopic. ... 604526ef94

I've also compiled the actual version, will upload later...

Aragon

Post Reply