AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem installing/activating Powershell lexer

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
nmsalinas



Joined: 18 Aug 2014
Posts: 2

PostPosted: Mon Aug 18, 2014 1:24 am    Post subject: Problem installing/activating Powershell lexer Reply with quote

August 17, 2014

To the AkelPad team,

First, thank you for AkelPad, which is a very fast and capable editor.
I have a problem/bug to report:

I use Win7Pro, fully patched.
I use AkelPad 4.8.9 (x64)

I downloaded a Powershell lexer from:
http://blog.sepa.spb.ru/2012/11/powershell-highlighter-for-akelpad.html

I copied the ps1.coder file to:
c:\program files\akelpad\akelfiles\plugs\coders

When I loaded AkelPad it still could not recognize *.ps1 files and when I did a right_click and selected “Syntax Theme” I could not see the Powershell definition.

On the web I found a site that suggested deleting the “cache” file that is in the same folder as the *.coder files. I tried that. It did not help either.

I edited the coder file and saw this line:
ps1.coder=C032EB2B01CFBA69

I changed it to:
ps1.coder=C032EB2B01CFBA69:"*.ps1”

When I loaded AkelPad this is what happened: [1] AkelPad did not display *.ps1 files with syntax coloring, and, [2] the line I modified in the coder file reset back to what it was, effectively removing what I had added.

So, my question: what am I doing wrong? Or is this a bug in the software?
Thank you for reading my email.
Best Regards,
nmsalinas@yahoo.com
Back to top
View user's profile Send private message
Skif_off



Joined: 20 Oct 2013
Posts: 325

PostPosted: Mon Aug 18, 2014 4:27 am    Post subject: Reply with quote

nmsalinas
Works fine. Try this: press Options/Plug-ins. Do you see "Coder::Settings"? Double click and replace "Fast cache" on "Without cache".
Back to top
View user's profile Send private message
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5360

PostPosted: Mon Aug 18, 2014 4:42 am    Post subject: Reply with quote

nmsalinas
Your link to "ps1.coder" is from github.com that does not support UTF-16LE. In this codepage *.coder files must be. You can change codepage of "ps1.coder" manually or download "ps1.coder" from:
http://akelpad.sourceforge.net/files/plugs/Coder/
Back to top
View user's profile Send private message Send e-mail
nmsalinas



Joined: 18 Aug 2014
Posts: 2

PostPosted: Mon Aug 18, 2014 5:24 am    Post subject: thank you Reply with quote

Gratitude to both members Smile I switched to "without cache" and downloaded the lexers from the above link, and all works well: powershell files are displaying with chroma-coding.

Minor issue remains: right_clicking and selecting "syntax theme" does not list the lexers I added. Strange, but not a major issue.

Thank you much for your help!
nmsalinas@yahoo.com
Back to top
View user's profile Send private message
FeyFre



Joined: 07 Aug 2007
Posts: 2040
Location: Vinnitsa, Ukraine

PostPosted: Mon Aug 18, 2014 7:40 am    Post subject: Reply with quote

Quote:
Minor issue remains: right_clicking and selecting "syntax theme" does not list the lexers I added. Strange, but not a major issue.
That menu is not automatic. Each iteam must be placed manually there. To do that you should call ContextMenu::Main plugin. In dialog window select ctaegory "ContextMenu::ShowMenu", in edit box find "SYNTAXTHEME" group, and add there item(s) you want.
Quote:
"Power-Shell" Call("Coder::Settings", 1, "ps1")
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group