Nicoedit 2.3 - text editor with lots of goodies
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.
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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.
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]
thanks
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]
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
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
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.
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
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.
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
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.
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.
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
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
piping text into editors
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.
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
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
http://murga-linux.com/puppy/viewtopic. ... 604526ef94
I've also compiled the actual version, will upload later...
Aragon
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html