Jump to content

Interactive syntax highlighter for AU3


ptrex
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

@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

Link to comment
Share on other sites

Link to comment
Share on other sites

Link to comment
Share on other sites

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!"

Link to comment
Share on other sites

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!"

Link to comment
Share on other sites

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!"

Link to comment
Share on other sites

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!"

Link to comment
Share on other sites

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!"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...