View previous topic :: View next topic |
Author |
Message |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Sun Aug 01, 2010 7:50 pm Post subject: |
|
|
Обновление BETA10
Updated BETA10
Quote: | 1 во вставленном через Insert шаблоне присутствует метка курсора | Это фича. Могу заоптимайзить. |
|
Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 3076 Location: Киев, Русь
|
Posted: Mon Aug 02, 2010 7:57 am Post subject: |
|
|
Даунгрейд по сравнению с предыдущей версией - Call("Templates::Open") не работает ни при каких условиях.
b9 рулит. |
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Mon Aug 02, 2010 8:54 am Post subject: |
|
|
Перескачайте версию. |
|
Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 3076 Location: Киев, Русь
|
Posted: Mon Aug 02, 2010 9:26 am Post subject: |
|
|
Всё равно не работает. "Кнопка для нажимания". |
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Mon Aug 02, 2010 10:14 am Post subject: |
|
|
VladSh, работает. Или мне опять продемонстрировать видео? |
|
Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 3076 Location: Киев, Русь
|
Posted: Mon Aug 02, 2010 10:38 am Post subject: |
|
|
FeyFre, почему о5? Чем в прошлый раз закончилась его демонстрация?
Ваше видео - недостаточное условие для того, чтобы оно у меня заработало)
Разве что поможет Вам опять найти ошибку...
Думаю, и без видео можно обойтись.
Условия те же: Templates::Main не в автозагрузке.
Добавлено:
Перескачал ещё раз. Плаг не работает вообще, т.е. и функция Main тоже, даже когда она в автозагрузке. Но по Ctrl+N хоть создаётся обычный файл. |
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Mon Aug 02, 2010 11:14 am Post subject: |
|
|
VladSh
Quote: | Условия те же: Templates::Main не в автозагрузке. | У меня тоже. Убедитесь что скачалось новое(размер 11264 метка времени 02/08/2010 11:46:43) |
|
Back to top |
|
 |
VladSh
Joined: 29 Nov 2006 Posts: 3076 Location: Киев, Русь
|
Posted: Mon Aug 02, 2010 11:29 am Post subject: |
|
|
Оказывается браузер почему-то "вытягивал" из кэша... Перекачал, всё заработало. Проблема на этот раз моя, приношу свои извинения.
Insert тоже навсегда исчезло?.. |
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Mon Aug 02, 2010 11:46 am Post subject: |
|
|
Не исчезало.
Если некуда вставлять он не отобразится.
(Пометил галочку исправить ещё один баг). |
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Mon Aug 02, 2010 9:06 pm Post subject: |
|
|
Обновление BETA11
Updated BETA11 |
|
Back to top |
|
 |
Deim0s
Joined: 12 Feb 2010 Posts: 139
|
Posted: Tue Aug 10, 2010 12:22 am Post subject: |
|
|
FeyFre,
С релизом!
Заметил такую вещь: в какой кодировке не был бы шаблон, плагин открывает и отображает его в правильной кодировке, но в окне AkelPad выбирается всегда cp 1251 (по умолчанию в настройках AkelPad) и для сохранения документа (если кодировка отлична от cp 1251) уже приходится выбирать кодировку вручную. Нельзя ли сделать синхронизацию, т.е. если шаблон, к примеру в utf -16 le, то и в окне AkelPad открывался в ней же?
В заголовке окна плагина ошибка.
P.S. Может кому пригодятся стандартные:
ASP JS.asp Code: | <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
ASP VBS.asp Code: | <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
ASP.NET C#.aspx Code: | <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
ASP.NET VB.aspx Code: | <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="utf-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
HTML 4.01 Frameset.html Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
HTML 4.01 Strict.html Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
HTML 4.01 Transitional.html Code: | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
HTML 5.html Code: | <!DOCTYPE html>
<html>
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
</body>
</html> |
XHTML 1.0 Frameset.xhtml Code: | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html> |
XHTML 1.0 Strict.xhtml Code: | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html> |
XHTML 1.0 Transitional.xhtml Code: | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html> |
XHTML 1.1.xhtml Code: | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>}::|::{</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
</html> |
|
|
Back to top |
|
 |
Fr0sT
Joined: 24 Jul 2007 Posts: 876
|
Posted: Tue Aug 10, 2010 8:09 am Post subject: |
|
|
Batch template Code: | @ECHO OFF
:: < Script definition >
:: check parameters
IF "%1"=="" GOTO :NoParam
:: main stuff here
}::|::{
EXIT /B %ERRORLEVEL%
:NoParam
ECHO %~n0. Command line error: "%*"
EXIT /B 1 |
Akel JavaScript template Code: | // === [script name] ===
// (c) 2010
//
// []
// Arguments:
//
//
// Example:
// Call("Scripts::Main", 1, "", "")
//
var hWndEdit;
var Usage = "Usage: [...] and execute Call(\"Scripts::Main\", 1, \""+WScript.ScriptName+"\", \"\")";
function ReportError(msg, printUsage)
{
AkelPad.MessageBox(hWndEdit, msg+(printUsage?("\n"+Usage):""), WScript.ScriptName, 48 /*MB_ICONEXCLAMATION*/);
WScript.Quit();
}
if (hWndEdit = AkelPad.GetMainWnd())
{
// check arguments
if (!WScript.Arguments(0))
ReportError("Expect parameter", true);
}::|::{
} |
|
|
Back to top |
|
 |
FeyFre
Joined: 07 Aug 2007 Posts: 2240 Location: Vinnitsa, Ukraine
|
Posted: Tue Aug 10, 2010 8:35 am Post subject: |
|
|
Quote: | В заголовке окна плагина ошибка. | На каком языке? Quote: | Заметил такую вещь: | Да, шаблон может быть в любой распознаваемой редактором кодировке. Но плагин не открывает шаблон, он просто читает его, и вставляет в новый документ, я не думаю что это хорошая идея - принудительно, без спросу менять кодировку новому документу, установленную пользователем в настройках, которая используется только в операциях сохранения(работа с текстом в любом случае выполняется в UCS-2) |
|
Back to top |
|
 |
Deim0s
Joined: 12 Feb 2010 Posts: 139
|
Posted: Tue Aug 10, 2010 10:58 am Post subject: |
|
|
FeyFre,
На русском, Выбирете -> Выберите.
По второму вопросу, Вы правы в принципе, единственный момент, если попадётся чужой шаблон с диакритикой или на "крючках", гадать придётся при сохранении. Может флаг, вроде "Использовать кодировку шаблона" можно сделать?
Default.coder Code: | ;----------------------------------------------;
; Coder plugin syntax file ;
;----------------------------------------------;
;For comfort file viewing/editing set tab size to 8 or higher.
;==========
;File types
;==========
Extensions:
}::|::{
;----------------------------------------------;
; HighLight ;
;----------------------------------------------;
;Flags (sum of the members)
; 1 case sensitive.
; 2 word is a composition of characters ("Words:" section only). Example: "0123456789" - highlight words that contain only digits.
; 4 quote end required ("Quotes:" section only).
; 8 quote start string is ignored and last meet delimiter used as quote start ("Quotes:" section only).
; 16 quote end string is ignored and first meet delimiter used as quote end ("Quotes:" section only).
; 32 don't highlight quote start ("Quotes:" section only).
; 64 don't highlight quote end ("Quotes:" section only).
; 128 don't match and don't highlight quote start ("Quotes:" section only).
; 256 don't match and don't highlight quote end ("Quotes:" section only).
; 512 quote start, delimiter or word located at line start.
; 1024 quote end, delimiter or word located at line end.
; 2048 quote start is surrounded with delimiters ("Quotes:" section only).
; 4096 quote end is surrounded with delimiters ("Quotes:" section only).
; 8192 quote doesn't contain delimiters. ("Quotes:" section only).
;
;Font styles
; 0 ignored.
; 1 normal.
; 2 bold.
; 3 italic.
; 4 bold italic.
;
;Colors
; Color need to be in #RRGGBB format.
; If color equal to zero, then color ignored.
;========================
;Font Font Face
;style size name
;========================
Font:
0 0 ""
;==============================================================================
;Basic Basic Sel Sel Line Line Column Marker Caret URL
;text bkgrnd text bkgrnd text bkgrnd
;==============================================================================
Colors:
0 0 0 0 0 0 0 0 0 0
;======================================================================
;Flags Font Color Color Quote Quote Escape Quote Quote
; style text bkgrnd start end char include exclude
;======================================================================
Quotes:
;======================================
;Flags Font Color Color Char(s)
; style text bkgrnd
;======================================
Delimiters:
;===================================
;Flags Font Color Color Word
; style text bkgrnd
;===================================
Words:
;----------------------------------------------;
; CodeFold ;
;----------------------------------------------;
;Flags (sum of the members)
; 1 case sensitive.
; 2 force get fold name for function list from left at the fold start. ("Folds:" section only).
; 4 force get fold name for function list from right at the fold start, including fold start. ("Folds:" section only).
; 8 fold start located at line start. ("Folds:" section only).
; 16 fold start located at line end. ("Folds:" section only).
; 32 fold end located at line start. ("Folds:" section only).
; 64 fold end located at line end. ("Folds:" section only).
; 128 one-level fold - use fold start string as fold end string, fold end string is ignored. ("Folds:" section only).
; 256 comment fold - fold ignore any other folds and skips inside. ("Folds:" section only).
;=============================
;Flags Skip Skip Escape
; start end char
;=============================
Skips:
;=================================
;Flags Fold Fold Delimiters
; start end
;=================================
Folds:
;----------------------------------------------;
; AutoComplete ;
;----------------------------------------------;
;====================================
;Set variables for "Blocks:" section.
;
;VAR "VALUE"
;====================================
Variables:
;======================================================================
;Abbreviations and blocks
;
; $~abbr abbreviation.
; $[] set caret to this position. Can be multiple (hot spots).
; $[text] select text. Can be multiple (hot spots).
; $$ symbol $.
; $\] escape symbol ]. Can be used in $[text] block: $[One [1$\].
; ${VAR} variable name that has been set in "Variables:" section.
; $; comment line.
; $# comment line.
;======================================================================
Blocks: |
Default.xml Code: | <?xml version="1.0" encoding="UTF-8"?>
}::|::{ |
|
|
Back to top |
|
 |
Fr0sT
Joined: 24 Jul 2007 Posts: 876
|
Posted: Tue Aug 10, 2010 12:36 pm Post subject: |
|
|
Quote: | если попадётся чужой шаблон с диакритикой или на "крючках", гадать придётся при сохранении |
Зачем гадать, сохраняй всё всегда в utf8. Однобайтовые кодировки - реликт, их надо изживать |
|
Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|