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 

Синтаксическая подсветка!!!
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (Russian)
View previous topic :: View next topic  
Author Message
a2019



Joined: 10 Jan 2012
Posts: 8

PostPosted: Fri Jan 13, 2012 7:26 pm    Post subject: Reply with quote

Fr0sT wrote:
Чем не устраивает Coder.Highlight?

как его в txt файле включить?
Back to top
View user's profile Send private message
Lenchik



Joined: 10 Jan 2011
Posts: 214

PostPosted: Sat Jan 14, 2012 1:23 pm    Post subject: Reply with quote

Вообще существует несколько вариантов txt.coder
Но есть и другие варианты, например:
Code:
Call("Coder::Settings", 1, "html")

Ниже код для меню сделанный на базе меню от сборки San_dr, который позволяет управлять применяемыми подсветками.
Код для меню
Code:
"&Типы подсветок"  Index(-1)
{
  "AkelPad menu" Call("Coder::Settings", 1, "akelmenu")
  "Assembler" Call("Coder::Settings", 1, "asm") Icon("%a\AkelFiles\Plugs\Toolbar\asm.ico")
  "AutoHotkey" Call("Coder::Settings", 1, "ahk")
  "AutoIt" Call("Coder::Settings", 1, "au3") Icon("%a\AkelFiles\Plugs\Toolbar\au3.ico")
  "Avisynth" Call("Coder::Settings", 1, "avs") Icon("%a\AkelFiles\Plugs\Toolbar\avisynth.ico")
  "AWK" Call("Coder::Settings", 1, "awk")
  "Bat/Cmd" Call("Coder::Settings", 1, "bat") Icon("%a\AkelFiles\Plugs\Toolbar\bat.ico")
  "BBCode" Call("Coder::Settings", 1, "bbc") Icon("%a\AkelFiles\Plugs\Toolbar\BBCode.ico")
  "C++" Call("Coder::Settings", 1, "cpp") Icon("%a\AkelFiles\Plugs\Coder.dll", 4)
  "Coder Syntax" Call("Coder::Settings", 1, "coder") Icon("%a\AkelFiles\Plugs\Coder.dll", 2)
  "CSS" Call("Coder::Settings", 1, "css") Icon("%a\AkelFiles\Plugs\Toolbar\css.ico")
  "diff" Call("Coder::Settings", 1, "diff")
  "fb2" Call("Coder::Settings", 1, "fb2")
  "Fortran" Call("Coder::Settings", 1, "ftn")
  "Hash" Call("Coder::Settings", 1, "md5")
  "HTML" Call("Coder::Settings", 1, "html") Icon("%a\AkelFiles\Plugs\Toolbar\html.ico")
  "Ini" Call("Coder::Settings", 1, "ini") Icon("%a\AkelFiles\Plugs\Toolbar\css.ico")
  "Inno" Call("Coder::Settings", 1, "iss") Icon("%a\AkelFiles\Plugs\Toolbar\iss.ico")
  "JScript" Call("Coder::Settings", 1, "js") Icon("%a\AkelFiles\Plugs\Toolbar\js.ico")
  "Log" Call("Coder::Settings", 1, "log")
  "LSS" Call("Coder::Settings", 1, "lss")
  "Lua" Call("Coder::Settings", 1, "lua") Icon("%a\AkelFiles\Plugs\Toolbar\lua.ico")
  "Mnu" Call("Coder::Settings", 1, "mnu")
  "NSIS" Call("Coder::Settings", 1, "nsi") Icon("%a\AkelFiles\Plugs\Toolbar\nsi.ico")
  "Pascal" Call("Coder::Settings", 1, "dpr") Icon("%a\AkelFiles\Plugs\Toolbar\Pascal.ico")
  "Perl" Call("Coder::Settings", 1, "pl")  Icon("%a\AkelFiles\Plugs\Toolbar\Perl.ico")
  "PHP" Call("Coder::Settings", 1, "php") Icon("%a\AkelFiles\Plugs\Toolbar\PHP.ico")
  "PRG" Call("Coder::Settings", 1, "prg")
  "Python" Call("Coder::Settings", 1, "py")  Icon("%a\AkelFiles\Plugs\Toolbar\Python.ico")
  "Resource" Call("Coder::Settings", 1, "rc") Icon("%a\AkelFiles\Plugs\Toolbar\rc.ico")
  "RDF" Call("Coder::Settings", 1, "rdf")
  "Sharp" Call("Coder::Settings", 1, "cs") Icon("%a\AkelFiles\Plugs\Toolbar\Sharp.ico")
  "Smarty" Call("Coder::Settings", 1, "tpl") Icon("%a\AkelFiles\Plugs\Toolbar\smarty.ico")
  "SQL" Call("Coder::Settings", 1, "sql")  Icon("%a\AkelFiles\Plugs\Toolbar\sql.ico")
  "Text" Call("Coder::Settings", 1, "txt") Icon("notepad.exe",0)
  "VB / VBScript" Call("Coder::Settings", 1, "vbs") Icon("%a\AkelFiles\Plugs\Toolbar\vbs.ico")
  "XBL" Call("Coder::Settings", 1, "xbl")
  "XML / DXL" Call("Coder::Settings", 1, "xml") Icon("%a\AkelFiles\Plugs\Toolbar\xml.ico")
  "XUL" Call("Coder::Settings", 1, "xul")
  SEPARATOR
 "Без типа" Call("Coder::Settings", 1, "?")
  SEPARATOR
  -"Обновить кэш" Call("Coder::Settings", 2) Icon("%a\AkelFiles\Plugs\Toolbar.dll", 3)
  "Редактировать типы подсветок"
  {
    "AkelPad menu" OpenFile("%a\AkelFiles\Plugs\Coder\akelmenu.coder")
    "Assembler" OpenFile("%a\AkelFiles\Plugs\Coder\asm.coder") Icon("%a\AkelFiles\Plugs\Toolbar\asm.ico")
    "AutoHotkey" OpenFile("%a\AkelFiles\Plugs\Coder\ahk.coder")
    "AutoIt" OpenFile("%a\AkelFiles\Plugs\Coder\au3.coder") Icon("%a\AkelFiles\Plugs\Toolbar\au3.ico")
    "Avisynth" OpenFile("%a\AkelFiles\Plugs\Coder\avs.coder") Icon("%a\AkelFiles\Plugs\Toolbar\avisynth.ico")
    "AWK" OpenFile("%a\AkelFiles\Plugs\Coder\awk.coder")
    "Bat/Cmd" OpenFile("%a\AkelFiles\Plugs\Coder\bat.coder") Icon("%a\AkelFiles\Plugs\Toolbar\bat.ico")
    "BBCode" OpenFile("%a\AkelFiles\Plugs\Coder\Bbc.coder") Icon("%a\AkelFiles\Plugs\Toolbar\BBCode.ico")
    "C++" OpenFile("%a\AkelFiles\Plugs\Coder\cpp.coder") Icon("%a\AkelFiles\Plugs\Coder.dll", 4)
    "Coder Syntax" OpenFile("%a\AkelFiles\Plugs\Coder\coder.coder") Icon("%a\AkelFiles\Plugs\Coder.dll", 2)
    "CSS" OpenFile("%a\AkelFiles\Plugs\Coder\css.coder") Icon("%a\AkelFiles\Plugs\Toolbar\css.ico")
    "diff" OpenFile("%a\AkelFiles\Plugs\Coder\diff.coder")
    "fb2" OpenFile("%a\AkelFiles\Plugs\Coder\fb2.coder")
    "Fortran" OpenFile("%a\AkelFiles\Plugs\Coder\fortran.coder")
    "Hash" OpenFile("%a\AkelFiles\Plugs\Coder\hashsum.coder")
    "HTML" OpenFile("%a\AkelFiles\Plugs\Coder\html.coder") Icon("%a\AkelFiles\Plugs\Toolbar\html.ico")
    "Ini" OpenFile("%a\AkelFiles\Plugs\Coder\ini.coder") Icon("%a\AkelFiles\Plugs\Toolbar\css.ico")
    "Inno" OpenFile("%a\AkelFiles\Plugs\Coder\inno.coder") Icon("%a\AkelFiles\Plugs\Toolbar\iss.ico")
    "JScript" OpenFile("%a\AkelFiles\Plugs\Coder\js.coder") Icon("%a\AkelFiles\Plugs\Toolbar\js.ico")
    "Log" OpenFile("%a\AkelFiles\Plugs\Coder\_log.coder")
    "LSS" OpenFile("%a\AkelFiles\Plugs\Coder\lss.coder")
    "Lua" OpenFile("%a\AkelFiles\Plugs\Coder\lua.coder") Icon("%a\AkelFiles\Plugs\Toolbar\lua.ico")
    "Mnu" OpenFile("%a\AkelFiles\Plugs\Coder\mnu.coder")
    "NSIS" OpenFile("%a\AkelFiles\Plugs\Coder\nsis.coder") Icon("%a\AkelFiles\Plugs\Toolbar\nsi.ico")
    "Pascal" OpenFile("%a\AkelFiles\Plugs\Coder\pascal.coder") Icon("%a\AkelFiles\Plugs\Toolbar\Pascal.ico")
    "Perl" OpenFile("%a\AkelFiles\Plugs\Coder\perl.coder") Icon("%a\AkelFiles\Plugs\Toolbar\Perl.ico")
    "PHP" OpenFile("%a\AkelFiles\Plugs\Coder\php.coder") Icon("%a\AkelFiles\Plugs\Toolbar\PHP.ico")
    "PRG" OpenFile("%a\AkelFiles\Plugs\Coder\prg.coder")
    "Python" OpenFile("%a\AkelFiles\Plugs\Coder\python.coder") Icon("%a\AkelFiles\Plugs\Toolbar\Python.ico")
    "Resource" OpenFile("%a\AkelFiles\Plugs\Coder\rc.coder") Icon("%a\AkelFiles\Plugs\Toolbar\rc.ico")
    "RDF" OpenFile("%a\AkelFiles\Plugs\Coder\rdf.coder")
    "Sharp" OpenFile("%a\AkelFiles\Plugs\Coder\cs.coder") Icon("%a\AkelFiles\Plugs\Toolbar\Sharp.ico")
    "Smarty" OpenFile("%a\AkelFiles\Plugs\Coder\smarty.coder") Icon("%a\AkelFiles\Plugs\Toolbar\smarty.ico")
    "SQL" OpenFile("%a\AkelFiles\Plugs\Coder\sql.coder") Icon("%a\AkelFiles\Plugs\Toolbar\sql.ico")
    "Text" OpenFile("%a\AkelFiles\Plugs\Coder\txt.coder") Icon("notepad.exe",0)
    "VB / VBScript" OpenFile("%a\AkelFiles\Plugs\Coder\vbs.coder") Icon("%a\AkelFiles\Plugs\Toolbar\vbs.ico")
    "XBL" OpenFile("%a\AkelFiles\Plugs\Coder\xbl.coder")
    "XML / DXL" OpenFile("%a\AkelFiles\Plugs\Coder\xml.coder") Icon("%a\AkelFiles\Plugs\Toolbar\xml.ico")
    "XUL" OpenFile("%a\AkelFiles\Plugs\Coder\xul.coder")
  }
  "Настроить темы" Call("Coder::Settings")  Icon("%a\AkelFiles\Plugs\Toolbar\coder.ico")
   SEPARATOR
  -"Редактировать меню..." Call("ContextMenu::Main", 1, 1, "&Типы подсветок")
}
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (Russian) All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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