Using SciTE to edit Visage source files!!

44 views
Skip to first unread message

William

unread,
Sep 4, 2012, 1:21:13 AM9/4/12
to visag...@googlegroups.com
Hello Guys,


I just had a great surprise. I was trying to hack SciTE to support visage, then I found some .fx in the properties file for cpp and then I found that Philho[0](hey are you around?), who was a great JavaFX Script guy, had created a highlighter for JavaFX Script in SciTE.

Yes, that's it, we have a working highlighter for Visage, you just have to:

- Download SciTE; [1]
- As it was for .fx, you will have to map visage files to use .fx feature, it's simply, I found how to do this in this post[2], you basically you have to: 
     * access the menu Options -> Open User Options File
     * paste the following in the file that will open:

file.patterns.javafx=$(file.patterns.javafx);*.visage
lexer.$(file.patterns.javafx)=cpp     

- Try to open a simple .visage file and "voila":



I asked to enter that group to keep the visage/fx script! It somehow can compile visage files, perhaps we can create a modified SciTE and ship with Visage(we could it with gradle plugin from Raj, all together and then we will have a way to use visage out of box, no config)? (of course, we need to review all the license stuff and all the possibilities, etc etc)

rajma...@gmail.com

unread,
Sep 4, 2012, 1:32:51 AM9/4/12
to visag...@googlegroups.com
Hi William

Thats a great use :) \0/ let me try now..

Shiv Kumar Ganesh

unread,
Sep 4, 2012, 12:31:48 PM9/4/12
to visag...@googlegroups.com
Thats cool!!! :) :) This is wat was required!!!
--
Regards,
Shiv Kumar Ganesh
Mob:+918144043528
twitter:shivkumarganesh

William Antônio Siqueira

unread,
Sep 4, 2012, 1:31:23 PM9/4/12
to visag...@googlegroups.com
I'm also thinking this is really cool, I'll make a post in visagefx.wordpress.com tonight (in my timezone).

--
William Antônio Siqueira
Java Support Analyst




2012/9/4 Shiv Kumar Ganesh <gshi...@gmail.com>

Arivu

unread,
Sep 4, 2012, 7:41:20 PM9/4/12
to visag...@googlegroups.com
Hi William
                 I am excited when i see the screenshot.[Some one ready made it happen]  Looking forward to your post. Good work. I highly appreciate it. 

Shiv Kumar Ganesh

unread,
Sep 5, 2012, 8:17:21 AM9/5/12
to visag...@googlegroups.com
Hi All,

I tried out the code snippet that @William mentioned and was really excited to see how it works. It was amazing =) +1 for that. Inspired by him I was just going through what all changes could be done and found out that SciTE as it is can do almost all the task required such as:-
  • Code Highlighting
  • Compiling
  • Build
  • Go/Run

All the above operations are possible using any visage file. There is a minor change in the file called cpp.properties(I installed it on windows and this file was found in the installation directory). After doing the changes I was able to compile visage files,see errors,build,and run visage files.Since I am at work so was not able to install JavaFX and check it out.But Visage files run very easily and beautifully. I guess just tweaking the run command i.e adding the classpath dependencies would make us able to run any visage file.

Steps to run/compile/build Visage in SciTE:-

  • Replace cpp.properties file from your installation directory(you can download my modified file from here)
  • Now open a new file and save as filename.visage
  • now write your visage code and save it and go to tools-->compile
  • You would see the output window. Then you can proceed with tools-->build,tools-->run to see the output.

NOTE

All the above mentioned steps are for visage not VisageFX because I was not able to add the dependencies due to unavailability on my system. I would do that and update it asap.The sample screenshot could be found here

William Antônio Siqueira

unread,
Sep 5, 2012, 9:38:31 AM9/5/12
to visag...@googlegroups.com
Hello Shiv,

Wow! This is great! Thanks for sharing this with us. I'll install it in my local Scite (I'm on a RHEL environment) and I'll let you know the results.

I was thinking if we can pack a modified SciTE with the gradle plugin and Java, etc, then the final user will simple download a zip file and from there he will be able to create applications. No "environment variable", no "IDE", no "x minutes tutorial", no "before you get start...", but "Create apps right now". :)
2012/9/5 Shiv Kumar Ganesh <gshi...@gmail.com>

James Weaver

unread,
Sep 5, 2012, 9:44:04 AM9/5/12
to visag...@googlegroups.com
Nice work, William and Shiv!

Regards,
Jim

Shiv Kumar Ganesh

unread,
Sep 5, 2012, 2:08:25 PM9/5/12
to visag...@googlegroups.com
Hi Jim... Thanks a lot.  :) :) . @William I wanted to point out something.Since I was on a windows machine things which I have mentioned above are working as expected. But right now at home I am trying to replicate the same thing on a Ubuntu system and it says visagec is not recognized.Since the commands written in cpp.properties in order to execute are the same as command prompt, it should work because in my terminal visagec works. :( kinda weird :( . Anyways the entire thing is working on Windows machine and can be configured by setting up classpath once so that you can directly compile the code.

On the other hand your idea of packing everything together is really great and thats the need of the hour. An IDE(Editor with most of the capabilities) would solve most of the problem which people face during development. I am in! Please let me know how you plan to do it.

Regards,

On Tuesday, September 4, 2012 10:51:13 AM UTC+5:30, William wrote:
Reply all
Reply to author
Forward
0 new messages