Sign in to follow this  
Followers 0
ptrex

Interactive syntax highlighter for AU3

58 posts in this topic

#1 ·  Posted (edited)

Interactive syntax highlighter for AU3

This is not a code example but rather a tool that some nice guy created, to have Interactive Code Highlighting on the web.

Called Codepress

Features :

  • Real-time syntax highlighting » just write some code
  • Code snippets » on AU3 example type If and press [tab]
  • Auto completion » simple type : msgbox
  • Shortcuts » on AU3 example press : cw
  • Multiple windows » you can add multiple CodePress windows to the page
Again like in many of my examples, I look for lightweight applications that fit well with AU3.

Benifit of this approach is that it is based on Java. Making it platform and Browser independend, opposed to other solutions around.

And this one is a nice one again, but still under construction.

I installed the highlighter on my machine on the LightTD webserver. Needs only 3 lines of code !!

post-6305-1210324106_thumb.jpg

I will let you all know more if, I have got some news on this topic.

As you can see more and more people are developing tools for AU3. It seems that it start to deserve it's place beside of the other big scripting names.

All credits for the AU3 language file goes to JamesB :)

He also has setup a test site : CodePress for AU3

Latest Syntax file :

autoit.zip

This far is how I am writing my own syntax Highlighter in AU3, using the Codepress concept.

It's not perfect yet, but close.

post-6305-1211967127_thumb.jpg

Regards,

ptrex

Edited by ptrex

Share this post


Link to post
Share on other sites



@JamesB

Added AutoIt syntax highlighting. Thanks to James Brooks

Indead that's you :) nice job.

I add the button to run the Example code in the DEMO section.

Can you explain me how the syntax file is structured. So I can add the things too.

That saves me the time figuring it out.

Do you have it run on a server already.

Regards

ptrex

Share this post


Link to post
Share on other sites

Actually, I found it quite hard to work it out at first so I studied the simple structures. I can't really explain how to use it because it varies as of such.

I just realised that the <> don't work so I will add them and any missing commands.

Share this post


Link to post
Share on other sites

So I leave it up to you then to continue.

Okey dokey.

When an update is released. Can you drop a message in here so we know.

Sure will.

Can anyone see things that dont work? I have added Dim :)

Share this post


Link to post
Share on other sites

@jamesb

I don't see the file ?

Was there supposed to be one?

Maybe it's good to attach your beta version files here so we can test.

Will do, I am at college now using their system to test it on, so I will post it when I get home.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

I will also add some snippets. Basically when you type something such as msgbox it will fix it and rewrite it as MsgBox(CARET STARTS HERE, "", ""). Any others you want?

Just noticed, conditional statements, while, if etc aren't done. I will add them.

Edited by JamesB

Share this post


Link to post
Share on other sites

#10 ·  Posted

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Thanks, does anyone know the colour code for the blue highlights?

0x0000FF

Edit: For the Dark Blue;

I get 0x000090

using my color picker.

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#14 ·  Posted

Ahh thanks George. I wasn't sure if it would be the default blue.

NP

Check my edit


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#16 ·  Posted

000090 is the dark blue.

:)

Want a copy of my color picker?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#18 ·  Posted

I can't run it here :)

Honestly, 000099 is dark blue.

Make up your mind. In your previous post you agree with me that it's 000090 and now you claim it's 000099.

I still get 000090.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#20 ·  Posted

But I needed light blue, which is 000FF. Dark blue is 000099.

I gave you the standard blue to begin with, 0000FF, then added the Dark Blue because ptrex mentioned it as well.

That's enough for today. I'm outta here.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0