How to add a new syntax theme
- Author
- Message
-
Offline
- Posts: 3
- Joined: Fri Dec 27, 2013 7:11 am
How to add a new syntax theme
Dear all,
I want to add a syntax theme to AkelPad. (For example, add a syntax theme for SHELL), But, I didn't find the method to add it.
Who can give me a method for this demand?
Thanks.
I want to add a syntax theme to AkelPad. (For example, add a syntax theme for SHELL), But, I didn't find the method to add it.
Who can give me a method for this demand?
Thanks.
-
Offline
- Posts: 1161
- Joined: Sun Oct 20, 2013 11:44 am
-
Offline
- Posts: 3
- Joined: Fri Dec 27, 2013 7:11 am
What a great job!!Skif_off wrote:and update cache (if used): remove file "Plugs\Coder\cache" or external call "Call("Coder::Settings", 2)" (see Coder-Eng.txt).Run_LeoCat wrote:Just put this file into "Plugs\Coder" directory
There is the menu items examples at the end of the file "Docs\Coder-Eng.txt" (if you need the menu items).
Thanks a lot!!!
-
Offline
- Posts: 366
- Joined: Mon Jan 10, 2011 5:28 pm
- Contact:
Because menu is hardcoded. Or it is default behavior of menu because only these *.coder are provided with Coder plugin.
So you need to put menu item by yourself.
I have done that by putting in ContextMenu::Showmenu of ContextMenu Plugin this:
and then in Edit Menu:
So you need to put menu item by yourself.
I have done that by putting in ContextMenu::Showmenu of ContextMenu Plugin this:
and then in Edit Menu:
Code: Select all
"Syntax theme" Menu("SYNTAXTHEME") Icon("%a\AkelFiles\Plugs\Coder.dll", 4)
-
Offline
- Posts: 23
- Joined: Sat Sep 13, 2014 10:35 am
I have the context menu dll plugin installed but I don't know how to configure it!
The .coder file should have an entry like:
So new entries could be added to context menu without further work and not depend on others plugins.
The .coder file should have an entry like:
Code: Select all
Files:
;==========
;File types
;==========
*.ahk
CoderName: <----
AutoHotkey
-
Offline
- Posts: 366
- Joined: Mon Jan 10, 2011 5:28 pm
- Contact:
Plugins have documentations in english *.txt files. You should read them to understand how to configure plugins to work the way you like.
Your suggestion you should put in topic with suggestions: viewtopic.php?t=829
Also, you can read manual for scripts plugin and create a script for Akelpad community, that can be autoloaded and will be modifying menus as you described.
Your suggestion you should put in topic with suggestions: viewtopic.php?t=829
Also, you can read manual for scripts plugin and create a script for Akelpad community, that can be autoloaded and will be modifying menus as you described.
-
Offline
- Posts: 23
- Joined: Sat Sep 13, 2014 10:35 am
Thank you!
Worked!
I'm getting familiar with AkelPad. I'm coming from Np++.
I'll get to know it better and soon I'll be contributing with some code.
I just thought of "log.coder" with the keywords:
'error', 'fail', 'update', 'new', DD/MM/YYY, HH:MM:SS, 'created', 'creating', 'exist', ...
I'll get to it.
One detail...
When loading ahk.loader it gives an error message:
"Contatin Unknown section name "CompleteList"
Worked!
I'm getting familiar with AkelPad. I'm coming from Np++.
I'll get to know it better and soon I'll be contributing with some code.
I just thought of "log.coder" with the keywords:
'error', 'fail', 'update', 'new', DD/MM/YYY, HH:MM:SS, 'created', 'creating', 'exist', ...
I'll get to it.
One detail...
When loading ahk.loader it gives an error message:
"Contatin Unknown section name "CompleteList"
Code: Select all
;----------------------------------------------;
; AutoComplete ;
;----------------------------------------------;
CompleteList:
;=======================
;ListFontStyle ListFontSize ListFaceName ListLineGap ListBlockIcon ListBlockIconMargins "left;right" ListHlBaseIcon ListHlBaseIconMargins "left;right" ListDocWordIcon ListDocWordIconMargins "left;right" ListBasicTextColor ListBasicBkColor ListSelTextColor ListSelBkColor
;=======================
${AutoComplete_ListBlockIcon} ${AutoComplete_ListBlockIconMargins} ${AutoComplete_ListHlBaseIcon} ${AutoComplete_ListHlBaseIconMargins} ${AutoComplete_ListDocWordIcon} ${AutoComplete_ListDocWordIconMargins} ${AutoComplete_ListBasicTextColor} ${AutoComplete_ListBasicBkColor} ${AutoComplete_ListSelTextColor} ${AutoComplete_ListSelBkColor}
-
Offline
- Posts: 23
- Joined: Sat Sep 13, 2014 10:35 am
Thanks once again!
I updated the plugin and now it gives me lot of error messages regarding .coder files. Even after updating all the .coder files and the plugin.
I can't get anything from this thread as it is in RUS:
viewtopic.php?t=1495&postdays=0&postorder=asc&start=915
I updated the plugin and now it gives me lot of error messages regarding .coder files. Even after updating all the .coder files and the plugin.
I can't get anything from this thread as it is in RUS:
viewtopic.php?t=1495&postdays=0&postorder=asc&start=915
-
Offline
- Posts: 366
- Joined: Mon Jan 10, 2011 5:28 pm
- Contact:
Use google translate and probably viewtopic.php?p=25908#p25908 will be of help in mass update of your custom theme (named "test" in case of your screenshot).
-
Offline
- Posts: 582
- Joined: Mon Apr 08, 2013 9:50 pm
- Location: Win7SP1x64, APx64
Means you've created a new color scheme named "test" and didn't add some widely used in .coder files variables and values (color+font style) to them.Azev wrote:
Or you may just switch back to a standard theme.
Feel free to ask any questions in english in that topic and in the others in .Azev wrote:I can't get anything from this thread as it is in RUS:
viewtopic.php?t=1495&postdays=0&postorder=asc&start=915
-
Offline
- Posts: 2
- Joined: Tue Sep 23, 2014 2:29 pm
Lenchik wrote:So you need to put menu item by yourself.
I have done that by putting in ContextMenu::Showmenu of ContextMenu Plugin this:
and then in
I try to reproduce that, but I cannot identify where I have to put in that - can you please explain that a little more?
ContextMenu-Eng.txt explains very well how to config, but unfortunately it doesn't say where to config that.
The part of "Edit Menu" already written in Akelmenu (right click on toolbar), but I think the upper part "ContextMenu::Showmenu" is the important, so please explain me where I can find the position where I have to put that in.
Kind regards,
zeha
PS: I have found it... for all other who searching for that:
Options -> Plug-Ins... -> ContextMenu::Main -> Call
PPS: Is it possible, that you share your syntax icons from "%a\AkelFiles\Plugs\Toolbar\*.ico"? :-)