Jump to content

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted (edited)

  JamesB said:

Hi all,

Just wanderning if there was anyway to regexp the '@' symbol. I have tried everything I can think of I just can't get there :D

So I found the ASCII code is 64, but how do I check agains the code?

James

OK, so I have actually finished the syntax files apart from <>.

New:

Lot's of new features such as,

Conditional Statements

For, To, Step, Next

Switch, EndSwitch

Select, EndSelect

Case

Else

Func, EndFunc

If, Then, EndIf

While, WEnd

Do, Until

Return

Exit

Global, Local, Const, Dim

ContinueLoop, ExitLoop

And, Or, True, False

_Includes

All of the includes I could find (Thanks to George for that!)

Compiler Directives

I hope I have them all there

Macros

All macros have been added so no confusion for something like @IAmNotAMacroButIAmHighlighted like in previous versions.

Fixed:

I have fixed bugs left, right and center to get this working.

Macros don't expand on a '@' they are all there

#includes are fixed, however <> still won't highlight (still working on it)

Exit has been removed from functions and moved to conditonals.

Snippets:

New snippets, you can easily add you own :) To make them work, type in the keyword and press tab.

'msgbox'' --> MsgBox($0 "" "")'

'if' --> 'If $0 Then\n\t\nEndIf'

'func' --> 'Func $0 ()\n\t\nEndFunc'

'cw' --> 'ConsoleWrite($0 & @CRLF)'

'cwe' --> 'ConsoleWriteError($0 & @CRLF)'

'switch' --> 'Switch $0\n\tCase\n\tCase\nEndSwitch'

'select' --> 'Select $0\n\tCase\n\tCase\nEndSelect'

'toolt' --> 'ToolTip($0 "" "")'

'hks' --> 'HotKeySet("$0" "")'

Hope you all like what I have done so far :(

If I am missing anything, please tell me.

Try downloading again and it should fix the @CRLF not being correctly highlighted.

James

Edited by JamesB
  • 2 weeks later...
  • 1 year later...
Posted

Is this project still alive? >_<

I was wondering - Can this be used to highlight syntax on my website? I have autoit tag there, but for now it's only mimics the quote tag (to ensure unparsed content). But i want it to actualy highlight the syntax for AutoIt code, just like here on the forum - can i use autout.js for that purpose? If yes, then how?

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

  On 8/5/2009 at 11:05 AM, 'MrCreatoR said:

Is this project still alive? >_<

I was wondering - Can this be used to highlight syntax on my website? I have autoit tag there, but for now it's only mimics the quote tag (to ensure unparsed content). But i want it to actualy highlight the syntax for AutoIt code, just like here on the forum - can i use autout.js for that purpose? If yes, then how?

Well the download is available from Sourceforge, I think I have the latest versions around somewhere, if not I'll re-create them, if I get some time.

Yes it is possible to do what you want. It basically hooks a normal textarea, filled with code.

Posted (edited)

  On 8/18/2009 at 12:02 PM, 'JamesBrooks said:

MrCreatoR, did you find a use for it?

Thanks, but to be honest i don't know how i can use it. I have SMF forum, the tags is inserted there like this:

Sources/Subs.php:

array(
                'tag' => 'autoit',
                'before' => '<div class="quoteheader">' . $txt['code'] . ': AutoIt <a href="javascript:void(0);" onclick="return smfSelectText(this);" class="codeoperation">' . $txt['code_select'] . '</a></div><blockquote>',
                'after' => '</blockquote>',
                'block_level' => true,
            ),

This one creates autoit tag on forum, and it's act like quote but with selection button (as in code tag).

So now, how can use this autoit.js+autoit.css to make it parse the content inside my autoit tag?

Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

  On 8/26/2009 at 7:48 PM, 'JamesBrooks said:

Well I don't actually know if it can highlight code, pre, div tags. That's actually something I've never tried.

Oh ok, thank you anyway. I think GeSHi is my answer, but i don't know how to work with that either >_<...

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted (edited)

Ok, managed to integrate the GeSHi to my local website (for tests :( ). But i have few issues:

* What is the last autoit.php script? This one? (the same as in geshi folder) It's 3 years old >_<

* How to make the urls of keywords open in new page, not in the current one?

Found a solution - In «geshi.php» find and replace:

) . '">';

with:

) . '" target="_blank">';
Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

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