Now that there’s a View menu I have a place to put that stuff. In the near future it will look something like this:
View
----
Editor \>
Show Invisibles
Show Line Numbers
Other Stuff...
Asset List \>
Name Column
Alias Column
Type Column
Location Column
Terminal Pane
Preview Pane
And yeah, remembering the spacing of the columns seems like a reasonable request.
I’d hoped to have color themes in place by now but things got pushed back a ways. Partly because stuff like fixing bugs takes priority over (most) cool features.
There’s nothing particularly hard about adding theme support, it’s just a little time-consuming.
What I’d like to do is have the ability to “suck” color info from TextMate themes. I don’t think there’s any way I’ll add complete TextMate theme support (the editor internals are just too different), but being able to pull the color info from them would be cool.
Jay
[import]uid: 9440 topic_id: 7025 reply_id: 45969[/import]
Code folding looks HOT! I think I will like the highlighting of the folded area of the code…You know what I mean. I think I will like that, it looks cool at least.
Does it handle things like:
[lua]local foo = function fooFunction()
–all kinds of code
end[/lua]
correctly? If it does, you rule. If it doesn’t, you still rule, but we need to figure it out [import]uid: 5317 topic_id: 7025 reply_id: 46251[/import]
I wish I could rule in all ways, but I don’t think it can handle this style…
[lua]local foo = function fooFunction()[/lua]
…at this time. Mainly due to the fact that I’m a real newbie at regex. If I can find someone to give me the right “formula” to add to what’s there, I think it can be done.
I will keep pounding on it.
Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46284[/import]
Widget checkbox in the code generator and also to be able to add a folder with subfolders to Library. This come in use when working with widgets. [import]uid: 13560 topic_id: 7025 reply_id: 46290[/import]
So here is what I came up with, give it a try and see if it works out.
^(local)?(\s)\*\w(\s)\*[=](\s)\*[function]
Here is my thinking…
from the start of the string
^
match optionally the word “local”
(local)?
than any amount of white space
(\s)*
than any word
\w
than any amount of white space
(\s)*
than an equal sign
[=]
than any amount of white space
(\s)*
than the word function
[function]
Not sure that is going to do it, but I need to brush up on my regex some, so give it a shot. Hopefully one more versed is regex can help out if I am completely off base. [import]uid: 5317 topic_id: 7025 reply_id: 46312[/import]
Awesome! I was working on it the same time as you and got it working – then saw your message and realized I hasn’t taken into account that local could be optional. D’oh! So let’s say it was a joint effort!
But anyway, it looks like it’s going to work. I haven’t tested it for the code folding, but the drop-down list of functions never included the ones that used that style, and now they all show up!
Woot!
As soon as I fire up my dev environment next time I’ll check it against the code folding, but I’m pretty sure it’ll work – the list of functions and code folding both work off the same regex expression.
Thanks for the nudge and the code!
Jay
[import]uid: 9440 topic_id: 7025 reply_id: 46318[/import]
local foo = function fooFunc()
end
local myvar = function myFunction()
end
sooper = function sooperFunc()
end
local test = function testFunc(params)
end
test2 = function testFunc2(params)
end
If you enter the above into the applet, and check the multiline checkbox, it will highlight the appropriate lines in the test data, and skip the lines with “end”.
Does that help out?
edit: the above code also takes into account that you could pass in words as arguments to the function. I think I used the * so it can accept any number of words, but that may need to be tweeked, since you need to account for a comma (,) for multiple words passed in…I think. A quick test should tell me.
Mike, no, don’t play with it more – at least not yet. I got it close enough that I don’t think it will be a problem, but CPM stuff is in a “holding pattern” while I finish my Horse Crazy app. And then Roly-Polies. But *then* I’ll be hopping back on CPM and working on v3.
Thanks!
Jay
[import]uid: 9440 topic_id: 7025 reply_id: 47036[/import]
It would be awesome to be able to edit the auto-generated text that appears with a new file. Maybe it’s possible? Seems like I should just be able to read a template file and edit it…
I know CPM want to promote their editor to the people already using it and code posts online but it be more beneficial to my team to be able to have a template for revision notes, the date/time, and anything we want to put in there as a team. It’s much easier for me to require them to fill out a template when it’s just “there.”
I’d like to see a feature that reduces the cost of CPM bringing it more in line with the other 3rd party tools I use with Corona. The $29 range would be perfect! [import]uid: 63352 topic_id: 7025 reply_id: 50479[/import]
David – in the next release of CPM you’ll be able to change the templates that are used to generate the code. The plan all along was to pull that in from a text file but a time crunch during initial development had me put that off.
Matthew - yeah, that would be cool. If a rich uncle dies, or something like that, it could happen.
Jay
[import]uid: 9440 topic_id: 7025 reply_id: 50540[/import]