Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't try to get Coder alias, if plugin isn't running
  • Loading branch information
Infocatcher committed Apr 7, 2014
1 parent c789ecd commit 5cd8ba7
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions insertTag.js
Expand Up @@ -170,6 +170,12 @@ function detectBBCode() {
return !new RegExp("\\.(" + xmlExts + ")$", "i").test(fileType);
}
function getCoderAlias() {
if(
!AkelPad.IsPluginRunning("Coder::HighLight")
&& !AkelPad.IsPluginRunning("Coder::CodeFold")
&& !AkelPad.IsPluginRunning("Coder::AutoComplete")
)
return "";
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=19363#19363
var hWndEdit = AkelPad.GetEditWnd();
var hDocEdit = AkelPad.GetEditDoc();
Expand Down
6 changes: 6 additions & 0 deletions jsBeautifier.js
Expand Up @@ -5931,6 +5931,12 @@ function getSyntaxType(alias) {
return "";
}
function getCoderAlias() {
if(
!AkelPad.IsPluginRunning("Coder::HighLight")
&& !AkelPad.IsPluginRunning("Coder::CodeFold")
&& !AkelPad.IsPluginRunning("Coder::AutoComplete")
)
return "";
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=19363#19363
var hWndEdit = AkelPad.GetEditWnd();
var hDocEdit = AkelPad.GetEditDoc();
Expand Down
6 changes: 6 additions & 0 deletions toggleComments.js
Expand Up @@ -1239,6 +1239,12 @@ function getCoderExt() {
return "";
}
function getCoderAlias() {
if(
!AkelPad.IsPluginRunning("Coder::HighLight")
&& !AkelPad.IsPluginRunning("Coder::CodeFold")
&& !AkelPad.IsPluginRunning("Coder::AutoComplete")
)
return "";
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=19363#19363
var hWndEdit = AkelPad.GetEditWnd();
var hDocEdit = AkelPad.GetEditDoc();
Expand Down
6 changes: 6 additions & 0 deletions winMergeTabs.js
Expand Up @@ -299,6 +299,12 @@ function getCurrentExtension() {
return ".txt";
}
function getCoderAlias() {
if(
!AkelPad.IsPluginRunning("Coder::HighLight")
&& !AkelPad.IsPluginRunning("Coder::CodeFold")
&& !AkelPad.IsPluginRunning("Coder::AutoComplete")
)
return "";
// http://akelpad.sourceforge.net/forum/viewtopic.php?p=19363#19363
var hWndEdit = AkelPad.GetEditWnd();
var hDocEdit = AkelPad.GetEditDoc();
Expand Down

0 comments on commit 5cd8ba7

Please sign in to comment.