Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

AHK Syntax Highlighting using Javascript/CSS


  • Please log in to reply
22 replies to this topic
A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Nice Avi!
 
I've created a Monokai theme based upon your Zenburn.  https://github.com/d...lighter-monokai

Great. The first sight gave me the impression that it is of Sublime Text but it isn't.

Thanks for sharing.


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


iDrug
  • Members
  • 389 posts
  • Last active: Oct 11 2015 09:24 PM
  • Joined: 13 Oct 2009
Could someone familiar with JS, please, add support of AHK to that script?

Judging by rules for CSS and JS there's not too much to write.
Unfortunately, I don't know JS good enough to do that :(
That script is widely used, one of it's uses is another script which highlights code sections on all forums and since it can be installed as a userscript - all the modern browsers support it.

A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Updated the Ahk Brush for bug fixes in various areas ... 

Github


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Updated Ahk Brush

  • now highlights labels, numbers, function calls and user-defined functions ... 
  • Added Github theme (thanks to joedf for the idea and the colors)
  • more bug fixes

 

preview_github.png


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

Updated Ahk Brush

  • Added highlighting for float numbers and fixed some major bugs in number highlighting

Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

So now finally highlight.js supports autohotkey . It doesn't highlight any keywords currently. Someone needs to update the AutoHotkey.js file .  happy.png  happy.png
 

Could someone familiar with JS, please, add support of AHK to that script?

Judging by rules for CSS and JS there's not too much to write.
Unfortunately, I don't know JS good enough to do that sad.png
That script is widely used, one of it's uses is another script which highlights code sections on all forums and since it can be installed as a userscript - all the modern browsers support it.


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan


guest3456
  • Members
  • 1704 posts
  • Last active: Nov 19 2015 11:58 AM
  • Joined: 10 Mar 2011

So now finally highlight.js supports autohotkey . It doesn't highlight any keywords currently. Someone needs to update the AutoHotkey.js file .  happy.png  happy.png
 

 

You're probably the man to do it. Then just submit a pull request to the guy and he'll integrate it



A v i
  • Members
  • 1323 posts
  • Last active: Nov 14 2015 06:56 PM
  • Joined: 30 Jan 2013

You're probably the man to do it. Then just submit a pull request to the guy and he'll integrate it

Switching to highlight.js will be a good move. As far as script size is concerned, to highlight autohotkey code with SyntaxHighlighter I need around 39 kb of JS+CSS code but with highlight.js all I need is 10 kb. I will try to contribute. 


Now a CS Undergrad. | My WebsiteAutohotkey Scripts | Softwares

Telegram me : @aviaryan