The .bak was just an old file I backed up while coding. I just forgot to delete it when I no longer needed it. It serves no purposeQuote:
Originally Posted by NoteMe
Printable View
The .bak was just an old file I backed up while coding. I just forgot to delete it when I no longer needed it. It serves no purposeQuote:
Originally Posted by NoteMe
Quote:
Originally Posted by thegreatone
Most people..:D..talk for your self..:D
Would actually be easy to add in new syntax highlighters to the extension.Quote:
Originally Posted by Madboy
Just add a new switch case per language with the Regex expressions what needs to be highlighted and have the setLanguage function called with a parameter telling which language to use, and finally add a menu item.
Thanks Cander
But what about the .bak vs xul file cander? Is the bak file a backup file, or has it any purpose?
Quote:
Originally Posted by NoteMe
I answered that. look up.
Quote:
Originally Posted by Cander
Are you telling me to read all the posts...thats just rude..:D
It was on the first page (50posts/page here). So I didn't see it..:)...sorry.
ØØ
:blush:
Holy crap this is nice!
How about having it so that if you havn't highlighted text and there's nothing in the clipboard it hides menu items that need text as input?
If you could that, that would be awesome :thumb:Quote:
Originally Posted by Cander
If you were to add a Delphi one, i could post up the keywords that are highlighted in Delphi, like:
VB = Dim
Delphi = Var
this is all that would need to be editted in the extension code
Code:case "delphi":
keys.push({style:{color:"#999999", bold:false, italic:true, name:"comment"}, start:/\s*\/\*[\s\S]*?\*\//mg});
keys.push({style:{color:"#999999", bold:false, italic:true, name:"comment"}, start:/\s*\/\//mg, end:/\n/mg, neglect:/\\|\?\?\//mg});
keys.push({style:{color:"#000099", bold:false, italic:false, name:"pre"}, start:/\s*?^\s*(?:#|\?\?=|%:)/mg, end:/\n/m, neglect:/\\[\s\S]|\?\?\/[\s\S]/m});
keys.push({style:{color:"#009900", bold:false, italic:false, name:"string"}, start:/\s*(?:\bL)?"/mg, end:/"/m, neglect:/\\[\s\S]|\?\?\/[\s\S]/m});
keys.push({style:{color:"#009900", bold:false, italic:false, name:"char"}, start:/\s*(?:\bL)?'/mg, end:/'/m, neglect:/\\[\s\S]|\?\?\/[\s\S]/m});
keys.push({style:{color:"#996600", bold:false, italic:false, name:"float"}, start:/\s*(?:(?:\b\d+\.\d*|\.\d+)(?:E[\+\-]?\d+)?|\b\d+E[\+\-]?\d+)[FL]?\b|\s*\b\d+\./mgi});
keys.push({style:{color:"#999900", bold:false, italic:false, name:"int"}, start:/\s*\b(?:0[0-7]*|[1-9]\d*|0x[\dA-F]+)(?:UL?|LU?)?\b/mgi});
keys.push({style:{color:"#000000", bold:true, italic:false, name:"bool"}, start:/\s*\b(?:true|false)\b/mg});
keys.push({style:{color:"#FF6633", bold:false, italic:false, name:"type"}, start:/\s*\b(?:bool|char|double|float|integer|long|short|signed|unsigned|void)\b/mg});
keys.push({style:{color:"#3333FF", bold:false, italic:false, name:"flow"}, start:/\s*\b(?:break|case|catch|continue|default|do|else|for|goto|if|return|switch|throw|try|while)\b/mg});
keys.push({style:{color:"#3333FF", bold:false, italic:false, name:"keyword"}, start:/\s*\b(?:procedure|var|start|end;)\b/mg});
keys.push({style:{color:"#663300", bold:true, italic:false, name:"operator"}, start:/\s*[\{\}\[\]\(\)<>%:;\.\?\*\+\-\^&\|~!=,\\]+|\s*\//mg});
break;
Nope, you would need to highlight:
procedure
and others, i cant remember them all, its not just variables, and statements, its more
Anyone that has this plug in, can you test something for me?
I am redoing the plug in now. And in stead of having up to 3 nested pop up menues, I wanted max 1-2. So I have re aranged them a bit. But now if I rightclick outside the text box (i.e on the blue stuff around here) I get Canders extension in the pop up menu too. It wasn't like that in the origianl, right? Can anyone just check that for me?
- I have also added a "paste img from clipboard", works like the paste code and quote from clipbard.
- I am also about to add 40+ smilies to the extension. Hope that will work out good.
Nebulom has added Java syntax higlighting and some other fancy stuff to it. But I havn't seen him online in a few days. If you see this Nebulom, do you want to merge our two extension, so we can make a Cander+ extension?..:D
Fine by me. I'll see what I can do.
Will it be best if I send you what I have altered, and tell you where to add it? Or is it better to do it the opposite way? And BTW what have you made that is worth keeping? I love the console thingy. We need to keep that one, even if it doesn't work well for multiple lines....:)
ØØ
I don't know, it's kinda messy. It's better if you send it to me. I'll place things.
OK. I have altered 3 files. And added 40+ smilies in the smilies catalogue. I am waiting for Wossy to run his app, so he can convert them to png, so we can have a small smilie in the pop up so you know what smilie you are choosing. (see the smilie in the current pop up to see what I mean).
Here is the layout I have now of the menu.
- Code heiglighter:
- C++ code from clipboard
- VB code from clipboard
- PHP code from clipboard
- Pste from clipboard:
- Code from clipboard
- Quote from clipboard
- Img from clipboard
- Format text:
- Bold
- Italic
- Code
- Quote
- Highlight
- Color
- Subscript
- Superscript
- Smilies
- 46 smilies here (might be smart to group them?)
- Nice text:
- Rainbow text
- Rainbow heiglight
- Rainbow heiglight and text
Tell me if you don't agree on this.
ØØ
C'mon Note, be a good boy, step up :DQuote:
Originally Posted by Cander
Fine by me. Code highlighter will be added by Java (mine TODO) and Delphi (hopefully for Adam). Hehehe.
Quote:
Originally Posted by manavo11
Ohhh....he must have said something like "Hello" in the start of the post. And he knows that I don't read more then one line...he should know better..:)
Cander, you can add it to my server if that is good enough for you. I am thinking about keeping NoteMe.com as long as I can. If that will work.
ØØ
Quote:
Originally Posted by nebulom
And Python me..:D...hehe...I don't know regular expression at all. Canders regular expression looks scary to me..:D...will have a look at it one day though...but that is not my primary goal.
ØØ
Smilies? http://www.vbforums.com/attachment.p...postid=1772157
Hmmmm. I missed that in the new version.
What we REALLY need is like, maybe 39 MORE SMILIES! :)
What else does this do?
COOL!
Well the new one has 45 more smilies...so hope I can get it to work. Wossy just mailed me. I have about 15 more minutes of coding first, then I will download his png smilies, and then I will have 10more minutes of coding to do,then I can send it to Nebulom, hope you havn't left by then Neb...:)
ØØ
Well, the smilies are there. I can see that Wossys converter didn't work 100% so I have to convert some smilies manualy.
I can also see that it became way to many. Might have to devide them into groups. What do you think?
http://vbforums.com/attachment.php?attachmentid=37792
w00t, I have updated the extension a 1000 times today, and now Fx suddenly refuses to collaborate here..:D...It won't uninstall the extension again...:D. It just says that it will be uninstalled next time I restart Fx. But I have even restarted the computer with no luck...grrrr....
ØØ
you guys are making me so proud of you. :sniff:
heh
NoteMe, you may have to go manually remove the extension
C:\documents and settings\<windows account>\application data\mozilla\firefox\profiles\<profiles name (or default.xxx)>exrtensions
and delete the folder named {47F7B08F-38B3-4909-B5B9-983F4B71824B}
I am on linux..::D
But I just managed to make it work again...:).....No idea what happend. But I altered some more on the code, and then tried to install that, and then restarted Fx, and then it was gone..:D
BTW do you want it on my server? Or did you think about something else?
your server would be great.
w00t!
Quote:
Originally Posted by NoteMe
Hey I was thinking maybe a popup with smiley groups with tabs maybe.. Id have to some research on that though
Ahha...:D...yeah that could work..:)...At the moment it is caos..:D One big line of stuff..:). but for some reason I can't take print screen on this machine...grrrrrr
Quote:
Originally Posted by Cander
Good as gold. I havn't looked into all this auto update at all. Not sure how it works. But I will at least make a folder for it. Do you have any prefered names? Or is "vb_extension" good enough?
vb_extension is fine. Here is a quick Tab test I wrote up.
Looks good. But I guess you ment that it will pop up when you rightclick and press something?
BTW Neb has changed the color picker so it won't pop up a new "form", but in stead the menu expands to a color picker..:) I think that might be better.
ØØ
Hmmmm...maybe we need som fancy .htaccess file in that folder?
Image for the colorpicker on a menupopup. Also added the Java syntax highlighter. Sorry about that Note. Just a few editing on Cander's set() and setLanguage() function. I'll try putting the Console Output, Note, etc. for Nice text menu.
I guess Alignment is also to be added here. [http://www.vbforums.com/right][/right], [http://www.vbforums.com/center][/center], [http://www.vbforums.com/left][/left], [http://www.vbforums.com/indent][/indent], etc... What do you think?
Yeah, that colour picker looks great.
But why didn't I know about the indent tag beofore? That is a great thing. I have always tried to fool the quote box to act like the code box. But the quote box does not have indent.
Not sure if you have noticed but the width of the code box is set to a certain amount of columns. So if you have a resolution bigger then 1024 in width, it won't fill the screen as the quote box does. Have you seen that?
But if we use the Indent tag, then we can make the syntax heiglighting in the quote box in stead of the code box, and make it fit the screen. What do you think?'
ØØ
That might not be a good solution after all since it is using blockquotes. So it adds an extra line break and space on the right side too..grrr...well well...
But I managed to make the .xpi file install it self when you click the link. Had too add:
AddType application/x-xpinstall xpi
to my .htaccess file, and now it works. So next job for me is making the update.rdf so it can update it self when we launch a new versoin..:)...and then add spyware..:) J/K
ØØ
Finaly made the autoupdate feauture work right for my server...mime types and .htaccess files and bugs fixed.
To Neb:
I found to url errors in the install.rdf file. I have mailed you the new one. So please use this one in the feauture so the autoupdate will still work..:)
Good job BTW.
ØØ
Quote:
Not FoundThe requested URL /vb_extension/cander.xpi was not found on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Apache/1.3.33 Server at [url]www.noteme.com[/url] Port 80
PHP Code:/* The message you have entered is too short. Please lengthen your message to at least 4 characters.
I changed the name of it...it is still under construction...:)
http://www.noteme.com/vb_extension/vbf.xpi
:)
w00t, why do you have to copy paste the link to make it work....grrr....I am starting to hate this..:D
http://noteme.com/vb_extension/vbf.xpi
I just clicked it, reviewed the security notice and it installed itsself :thumb:Quote:
Originally Posted by NoteMe
Ohhh...good...it is probably just my machine that is getting tired of installing and uninstalling it all the time then...:)
http://vbforums.com/attachment.php?attachmentid=37831
http://vbforums.com/attachment.php?attachmentid=37794 Yep probably just that overworked poor machine with multiple o/s's...
Good work guys.
Glad to see the color picker redone. I was never happy with the way I had done it, but it was the best workaround at the time due to some problems where I couldnt get the color picker to work any other way. :o
I am currently looking up a way to get an event to fire when an image is clicked on an xul window for that tabbed smiliey window idea. onclick and oncommand just dont fire for an image. :(
Or I wonder if it can be turned into a widget like the color swatch so it can be like nebulom has it now.
hmmm.
It is at the moment working as the menu in Fx. The "back" "forward" "home" button. This is snapshot of how it is working at the moment.
NB: The image is from Moxilla, so the left side of the menu is a bit different then in Fx.