Syntax theme

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Syntax theme

Post by sexy96 »

Syntax theme

przy otwarciu pliku AutoHotkey (ahk)
Syntax theme wybiera pozycję "none"
Co zrobić aby wybór był na "Autolt" (najlepiej pasuje)?
Image
Last edited by sexy96 on Sun Feb 05, 2017 11:09 am, edited 1 time in total.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

sexy96
W pliku ...\AkelPad\AkelFiles\Plugs\Coder\au3.coder, w sekcji "Files:" dopisz wiersz:

Code: Select all

*.ahk
Skasuj plik cache: ...\AkelPad\AkelFiles\Plugs\Coder\cache.

---
PS
Być może lepszym rowiązaniem będzie zastosowanie dedykowanego kodera dla AutoHotkey:
http://akelpad.sourceforge.net/files/pl ... /ahk.coder
https://github.com/Lenchik/Akelpad-synt ... /ahk.coder
Plik ahk.coder należy zapisać w formacie UTF-16LE.

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

Pobrałem (ten drugi link..nowszy) zapisałem w UTF-16LE (już był w tym kodzie) i skasowałem cache.
AkelPad rozpoznaje skrypt ahk, tylko nie ma go na tej liście.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

sexy96
Musisz dopisać pozycję z AutoHotkey do menu (ContextMenu plugin),
ContextMenu::Main -> ContextMenu::Show menu:

Code: Select all

...
"SYNTAXTHEME"
{
    "1s" Call("Coder::Settings", 1, "1s")
    "Assembler" Call("Coder::Settings", 1, "asm")
    "AutoHotkey" Call("Coder::Settings", 1, "ahk")
    "AutoIt" Call("Coder::Settings", 1, "au3")
    ...
}
...

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

"z AutoHotkey do menu (ContextMenu plugin)"

Nie mam pliku o nazwie AutoHotkey
ContextMenu plugin, też nie wiem które to jest.
Mam: wtyczki pluginy i Toolbar plugin

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

sexy96
Main menu -> Options -> Plugins -> ContextMenu::Main -> ContextMenu::Show menu
W sekcji "SYNTAXTHEME" wstaw wiersz:

Code: Select all

     "AutoHotkey" Call("Coder::Settings", 1, "ahk")

Offline
Posts: 282
Joined: Thu Sep 10, 2015 9:53 am
Location: Deutschland

Post by sexy96 »

Działa, dziękuję.
Ja mam spolszczony AkalPad.
U mnie ContextMenu nazywa się wtyczki (pluginy)
I nie widziałem, że to trzeba klikać na ContextMenu::Main
aby przejść dalej do ContextMenu::Show. Ale jest OK.

PS. zamiast klikania znalazłem wywołaj
Post Reply