Scripts discussion (2)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Posts: 27
Joined: Sun Mar 16, 2008 10:26 pm

Post by kadvlad »

VladSh
ясно, спасибо.

Будем ждать и надеяться..

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

Post by KDJ »

FindReplaceEx.js
Added: Regular expressions collection.

Offline
Posts: 119
Joined: Sat Jan 12, 2008 10:16 am
Location: Shantou, China

a suggestion to ScreenView.js

Post by cnnnc »

Hi, KDJ

I like the function ChangeCoderTheme in ScreenView.js to be modified into

Code: Select all

function ChangeCoderTheme(sViewName)
{
  if (IsPluginExists(oPlug.CoderTheme.Name))
  {
    if (oView[sViewName].CoderTheme)
    {
      if (! oPlug.CoderTheme.IsRunning())
        oPlug.CoderTheme.Switch();
  
      AkelPad.Call("Coder::Settings", 5, oView[sViewName].CoderThemeName);
    }
    else
    {
      if (oPlug.CoderTheme.IsRunning())
        oPlug.CoderTheme.Switch();
    }
  }
}
, then I can disabled the function "Coder::HighLight" when I uncheck IDCODERTHEME.

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

Post by KDJ »

cnnnc
And also, it seems to me that ColorCoderTheme button should be in three states:
checked - change Coder Theme,
unchecked - disable HighLight,
grayed - not change.

Offline
Posts: 176
Joined: Sat Dec 24, 2011 4:05 pm

Post by F. Phoenix »

KDJ, could you extend current or write any additional tester for build-in AkelPad RegExp? It different, and last is much difficult cause weak, but it's required for some tasks like Coder syntax definition.

Offline
Posts: 1862
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

ChooseColor.js с поддержкой именованных цветов:
https://gist.github.com/4632145/revisions

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

Post by KDJ »

F. Phoenix
Build-in AkelPad regular expressions can be tested by "Find/Replace" dialog.

Offline
Posts: 176
Joined: Sat Dec 24, 2011 4:05 pm

Post by F. Phoenix »

I know, but it's uncomfortable for test group values.

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

Post by KDJ »

ScreenView.js
Changed: now ColorCoderTheme check box can have three states and you can turn off syntax highlighting.

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

Post by KDJ »

F. Phoenix wrote:I know, but it's uncomfortable for test group values.
I don't know how the tester should work? Do you have a project?

Offline
Posts: 176
Joined: Sat Dec 24, 2011 4:05 pm

Post by F. Phoenix »

No, just a though, that script can use some dummy document and AkelPad.Replace() plugin function, if there no better exports exists. With replace pattern like "$0\n$1\n$2\n$3\n$4\n$5\n$6\n$7\n$8\n$9\n$10..." But may be it's a possible to call some AkelEdit func through WSH - I badly understand this calls and interaction (as whole WinAPI).

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

Post by KDJ »

FindReplaceEx.js
Changed:
- instead "Regular expressions collection" is "Find/Replace templates" (increased functionality),
- Find/Replace templates is saved in file FindReplaceEx_templates.tsv (you must manually change the file name FindReplaceEx_REC.tsv to FindReplaceEx_templates.tsv).


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

Post by KDJ »

FindReplaceEx.js
Added: help for regular expressions (F1).
Changed: hot key for Templates now is F2.

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

Post by KDJ »

FindReplaceEx.js
Added: possibility to translate the interface.
Locked