Всё намного проще
Если Вы настраивали по этой статье Вы должны зарегистрироваться, чтобы видеть ссылки. , желательно удалить нотепад + удалить его записи в реестре.1. Скачиваем новый нотепад++
Вы должны зарегистрироваться, чтобы видеть ссылки. , устанавливаем.
Идём в опции - настройки- автозавершение
45645.png
делаем как на картинке.
В этом же окне переходим в - Новый документ (если хотите, чтобы новый документ определялся, как исходный код С++)
Ставим - Синтаксис по умолч.: С++
Жмём закрыть.
Далее переходим в опции - определение стилей - в колонке язык выбираем С++
534636.png
вводим Польз. расширение sma(можно добавить и другие)
жмём Ок.
Закрываем нотепад.
2.Переходим в каталог C:\Program Files (x86)\Notepad++\ (стандартный путь)
Открываем нотепадом файлик langs.model.хмл
Ищем строку :
- Код: Выделить всё
<Language name="cpp" ext="h hpp hxx cpp cxx cc" commentLine="//" commentStart="/*" commentEnd="*/">
заменяем на :
- Код: Выделить всё
<Language name="cpp" ext="h hpp hxx cpp cxx cc sma" commentLine="//" commentStart="/*" commentEnd="*/">
Клацаем сохранить.
В папке AMXX Natives' Parser for Notepad++ из архива
создаём наш файл sma как написано в статье.
Допустим у нас только инклуд core
- Код: Выделить всё
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<AutoComplete language="SMA">
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator=", " terminal="; " additionalWordChar=""/>
<KeyWord name="_core_included" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="heapspace" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="funcidx" func="yes">
<Overload retVal="" >
<Param name="const name[]" />
</Overload>
</KeyWord>
<KeyWord name="numargs" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="getarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
</Overload>
</KeyWord>
<KeyWord name="setarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="strlen" func="yes">
<Overload retVal="" >
<Param name="const string[]" />
</Overload>
</KeyWord>
<KeyWord name="tolower" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="toupper" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="swapchars" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="random" func="yes">
<Overload retVal="" >
<Param name="max" />
</Overload>
</KeyWord>
<KeyWord name="min" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="max" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="clamp" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="min=cellmin" />
<Param name="max=cellmax" />
</Overload>
</KeyWord>
<KeyWord name="power" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="exponent" />
</Overload>
</KeyWord>
<KeyWord name="sqroot" func="yes">
<Overload retVal="" >
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="time" func="yes">
<Overload retVal="" >
<Param name="&hour=0" />
<Param name="&minute=0" />
<Param name="&second=0" />
</Overload>
</KeyWord>
<KeyWord name="date" func="yes">
<Overload retVal="" >
<Param name="&year=0" />
<Param name="&month=0" />
<Param name="&day=0" />
</Overload>
</KeyWord>
<KeyWord name="tickcount" func="yes">
<Overload retVal="" >
<Param name="&granularity=0" />
</Overload>
</KeyWord>
<KeyWord name="abs" func="yes">
<Overload retVal="" >
<Param name="x" />
</Overload>
</KeyWord>
</AutoComplete>
</NotepadPlus>
Вырезаем середину с кнопками, вот так
- Код: Выделить всё
<KeyWord name="_core_included" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="heapspace" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="funcidx" func="yes">
<Overload retVal="" >
<Param name="const name[]" />
</Overload>
</KeyWord>
<KeyWord name="numargs" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="getarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
</Overload>
</KeyWord>
<KeyWord name="setarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="strlen" func="yes">
<Overload retVal="" >
<Param name="const string[]" />
</Overload>
</KeyWord>
<KeyWord name="tolower" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="toupper" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="swapchars" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="random" func="yes">
<Overload retVal="" >
<Param name="max" />
</Overload>
</KeyWord>
<KeyWord name="min" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="max" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="clamp" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="min=cellmin" />
<Param name="max=cellmax" />
</Overload>
</KeyWord>
<KeyWord name="power" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="exponent" />
</Overload>
</KeyWord>
<KeyWord name="sqroot" func="yes">
<Overload retVal="" >
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="time" func="yes">
<Overload retVal="" >
<Param name="&hour=0" />
<Param name="&minute=0" />
<Param name="&second=0" />
</Overload>
</KeyWord>
<KeyWord name="date" func="yes">
<Overload retVal="" >
<Param name="&year=0" />
<Param name="&month=0" />
<Param name="&day=0" />
</Overload>
</KeyWord>
<KeyWord name="tickcount" func="yes">
<Overload retVal="" >
<Param name="&granularity=0" />
</Overload>
</KeyWord>
<KeyWord name="abs" func="yes">
<Overload retVal="" >
<Param name="x" />
</Overload>
</KeyWord>
Идём в каталог C:\Program Files (x86)\Notepad++\plugins\APIs (стандартный путь)
открываем файл срр.хмл
Тут два варианта:
1.Вам нужно с++ и pawn автозавершение ,тогда
- Код: Выделить всё
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChar=""/>
<!--
The following items should be alphabetically ordered.
func="yes" means the keyword should be treated as a fuction, and thus can be used in the parameter
calltip system. If this is the case, the retVal attribute specifies the return value/type. Any
following Param tag specifies a parameter, they must be in order. The name attributes specifies
the parameter name.
-->
После строк выше вставляем свой кусок кода заготовленный ранее, получается следующее:
cpp.xml
Нажимаем сохранить.
2. Вам не нужен никакой с++, только pawn
В файле срр.хмл смело удаляем всё кроме
- Код: Выделить всё
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<!-- language doesnt really mean anything, its more of a comment -->
<AutoComplete language="C++">
<!--
Environment specifies how the language should be interpreted. ignoreCase makes autocomplete
ignore any casing, start and stopFunc specify what chars a function starts and stops with.
param specifies parameter separator and terminal can be used to specify a character that stops
any function. Using the same character for different functions results in undefined behaviour.
05/11/2009
The basic word character are : A-Z a-z 0-9 and '_'
If your function name contains other characters,
add your characters in "additionalWordChar" attribute (without separator)
in order to make calltip hint work
-->
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChar=""/>
<!--
The following items should be alphabetically ordered.
func="yes" means the keyword should be treated as a fuction, and thus can be used in the parameter
calltip system. If this is the case, the retVal attribute specifies the return value/type. Any
following Param tag specifies a parameter, they must be in order. The name attributes specifies
the parameter name.
-->
здесь вставляем код из sma
</AutoComplete>
</NotepadPlus>
на выходе имеем :
- Код: Выделить всё
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<!-- language doesnt really mean anything, its more of a comment -->
<AutoComplete language="C++">
<!--
Environment specifies how the language should be interpreted. ignoreCase makes autocomplete
ignore any casing, start and stopFunc specify what chars a function starts and stops with.
param specifies parameter separator and terminal can be used to specify a character that stops
any function. Using the same character for different functions results in undefined behaviour.
05/11/2009
The basic word character are : A-Z a-z 0-9 and '_'
If your function name contains other characters,
add your characters in "additionalWordChar" attribute (without separator)
in order to make calltip hint work
-->
<Environment ignoreCase="no" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" additionalWordChar=""/>
<!--
The following items should be alphabetically ordered.
func="yes" means the keyword should be treated as a fuction, and thus can be used in the parameter
calltip system. If this is the case, the retVal attribute specifies the return value/type. Any
following Param tag specifies a parameter, they must be in order. The name attributes specifies
the parameter name.
-->
<KeyWord name="_core_included" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="heapspace" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="funcidx" func="yes">
<Overload retVal="" >
<Param name="const name[]" />
</Overload>
</KeyWord>
<KeyWord name="numargs" func="yes">
<Overload retVal="" >
</Overload>
</KeyWord>
<KeyWord name="getarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
</Overload>
</KeyWord>
<KeyWord name="setarg" func="yes">
<Overload retVal="" >
<Param name="arg" />
<Param name="index=0" />
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="strlen" func="yes">
<Overload retVal="" >
<Param name="const string[]" />
</Overload>
</KeyWord>
<KeyWord name="tolower" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="toupper" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="swapchars" func="yes">
<Overload retVal="" >
<Param name="c" />
</Overload>
</KeyWord>
<KeyWord name="random" func="yes">
<Overload retVal="" >
<Param name="max" />
</Overload>
</KeyWord>
<KeyWord name="min" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="max" func="yes">
<Overload retVal="" >
<Param name="value1" />
<Param name="value2" />
</Overload>
</KeyWord>
<KeyWord name="clamp" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="min=cellmin" />
<Param name="max=cellmax" />
</Overload>
</KeyWord>
<KeyWord name="power" func="yes">
<Overload retVal="" >
<Param name="value" />
<Param name="exponent" />
</Overload>
</KeyWord>
<KeyWord name="sqroot" func="yes">
<Overload retVal="" >
<Param name="value" />
</Overload>
</KeyWord>
<KeyWord name="time" func="yes">
<Overload retVal="" >
<Param name="&hour=0" />
<Param name="&minute=0" />
<Param name="&second=0" />
</Overload>
</KeyWord>
<KeyWord name="date" func="yes">
<Overload retVal="" >
<Param name="&year=0" />
<Param name="&month=0" />
<Param name="&day=0" />
</Overload>
</KeyWord>
<KeyWord name="tickcount" func="yes">
<Overload retVal="" >
<Param name="&granularity=0" />
</Overload>
</KeyWord>
<KeyWord name="abs" func="yes">
<Overload retVal="" >
<Param name="x" />
</Overload>
</KeyWord>
</AutoComplete>
</NotepadPlus>
Жмём сохранить.
Удачи.
У вас нет необходимых прав для просмотра вложений в этом сообщении.