FreeBasic
Главная
Вход
Регистрация
Вторник, 19.06.2018, 21:24Приветствую Вас Гость | RSS
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Вспомогательное программное обеспечение » Вспомогательные утилиты для программистов » Тема подсветки FB для NotePad++
Тема подсветки FB для NotePad++
haavДата: Пятница, 12.09.2014, 07:57 | Сообщение # 1
Генерал-полковник
Группа: Администраторы
Сообщений: 852
Репутация: 34
Статус: Offline
Очень многие пользуются превосходным редактором NotePad++. Один из участников FreeBasic сообщества предоставил подсветку для языка freebasic.

Файл Freebasic.xml:


Код
<NotepadPlus>
     <UserLang name="FreeBASIC" ext=" .bas,.bi" udlVersion="2.1">
         <Settings>
             <Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
             <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
         </Settings>
         <KeywordLists>
             <Keywords name="Comments">03/' 04'/ 00' 01 02</Keywords>
             <Keywords name="Numbers, prefix1"></Keywords>
             <Keywords name="Numbers, prefix2"></Keywords>
             <Keywords name="Numbers, extras1"></Keywords>
             <Keywords name="Numbers, extras2"></Keywords>
             <Keywords name="Numbers, suffix1"></Keywords>
             <Keywords name="Numbers, suffix2"></Keywords>
             <Keywords name="Numbers, range"></Keywords>
             <Keywords name="Operators1">-> = &= += -= *= /= \= ^= MOD= AND= EQV= IMP= OR= XOR= SHL= SHR= + - * / \ ^ MOD SHL SHR @ .-> & <= => < > ( ) [ ]</Keywords>
             <Keywords name="Operators2"></Keywords>
             <Keywords name="Folders in code1, open"></Keywords>
             <Keywords name="Folders in code1, middle"></Keywords>
             <Keywords name="Folders in code1, close"></Keywords>
             <Keywords name="Folders in code2, open">enum type function sub property</Keywords>
             <Keywords name="Folders in code2, middle">"declare function" "declare sub"</Keywords>
             <Keywords name="Folders in code2, close">"end enum" "end type" "end function" "end sub" "end property"</Keywords>
             <Keywords name="Folders in comment, open"></Keywords>
             <Keywords name="Folders in comment, middle"></Keywords>
             <Keywords name="Folders in comment, close"></Keywords>
             <Keywords name="Keywords1">erase lbound preserve redim ubound bit bitreset bitset hibyte hiword lobyte loword and andalso eqv imp not or orelse xor rem defbyte defdbl defint deflng deflongint defshort defsng defstr defubyte defuint defulongint defushort option base byval dynamic explicit gosub nogosub nokeyword private  static beep csrlin locate open cons err pipe scrn pos print using spc tab width write asc bin chr cvd cvi cvl cvlongint cvs cvshort format hex mkd mki mkl mklongint mks mkshort oct str val valint vallng valuint valulng wbin wchr whex woct wstr as class dim enum extends implements object private: protected: public: scope shared type union var with date dateadd datediff datepart dateserial datevalue day hour isdate minute month monthname now second setdate settime time timer timeserial timevalue weekday weekdayname year access append binary bload bsave close encoding eof freefile get input input$ "line input" loc lock lof open output "print #" "put #" random read "read write" reset seek unlock "write #" case continue do else elseif "end if" endif exit for gosub goto if iif is loop next on return select sleep step then until wend while add alpha circle cls color custom draw "draw string" flip  get imageconvertrow imagecreate imagecreate imagedestroy imageinfo line paint palette pcopy pmap point pointcoord preset pset put rgb rgba screen screencontrol screencopy screenevent screenglproc screeninfo screenlist screenlock screenptr screenres screenset screensync screenunlock trans view window inp lpos lprint lpt open com out wait abs acos asin atan2 atn cos exp fix frac int log randomize rnd sgn shl shr sin sqr tan peek poke allocate callocate clear deallocate delete field fre new reallocate asm data let offsetof option restore sizeof swap to typeof common dylibfree dylibload dylibsymbol end exterrn export extern import namespace private public using procptr strptr varptr abstract alias base byref byval call cdecl constructor declare destructor function lib naked operator overload override pascal property protected static stdcall sub this va_arg va_first va_next virtual sadd instr instrrev lcase left len lset ltrim mid right rset rtrim space trim ucase wspace condbroadcast condcreate conddestroy condsignal condwait mutexcreate mutexdestroy mutexlock mutexunlock threadcall threadcreate threaddetach threadwait cast cbyte cdbl cint clng clngint cptr cshort csign csng cubyte cuint culng culngint cunsg cushort getjoystick getkey getmouse inkey multikey setmouse stick strig winput </Keywords>
             <Keywords name="Keywords2">any byte const double integer long longint pointer ptr short single string ubyte uinteger ulong ulongint unsigned ushort wstring zstring</Keywords>
             <Keywords name="Keywords3">#assert #define #else #elseif #endif #endmacro #error #if #ifdef #ifndef #inclib #include #lang #libpath #line #macro #pragma #print #undef defined once </Keywords>
             <Keywords name="Keywords4">null true false</Keywords>
             <Keywords name="Keywords5">__FB_VERSION__ __FB_BUILD_DATE__ __FB_VER_MAJOR__ __FB_VER_MINOR__ __FB_VER_PATCH__ __FB_SIGNATURE__ __FB_MT__ __FILE__ __FILE_NQ__ __FUNCTION__ __FUNCTION_NQ__ __LINE__ __DATE__ __DATE_ISO__ __TIME__ __PATH__ __FB_OPTION_BYVAL__ __FB_OPTION_DYNAMIC__ __FB_OPTION_ESCAPE__ __FB_OPTION_EXPLICIT__ __FB_OPTION_PRIVATE__ __FB_OPTION_GOSUB__ __FB_OUT_EXE__ __FB_OUT_LIB__ __FB_OUT_DLL__ __FB_OUT_OBJ__ __FB_DEBUG__ __FB_ERR__ __FB_LANG__ __FB_BACKEND__ __FB_FPU__ __FB_FPMODE__ __FB_GCC__ __FB_ARGC__ __FB_ARGV__ __FB_BIGENDIAN__ __FB_CYGWIN__ __FB_DARWIN__ __FB_DOS__ __FB_FREEBSD__ __FB_LINUX__ __FB_MAIN__ __FB_NETBSD__ __FB_OPENBSD__ __FB_PCOS__ __FB_SSE__ __FB_UNIX__ __FB_VECTORIZE__ __FB_WIN32__ __FB_XBOX__</Keywords>
             <Keywords name="Keywords6">assert assertwarn stop erfn err error local "on error" resume "resume next"</Keywords>
             <Keywords name="Keywords7">chain chdir command curdir dir end environ exec exepath fileattr filecopy filedatetime fileexists filelen isredirected kill mkdir name rmdir run setenviron shell system windowtitle</Keywords>
             <Keywords name="Keywords8"></Keywords>
             <Keywords name="Delimiters">00 01 02 03[ 04 05] 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
         </KeywordLists>
         <Styles>
             <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
             <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="2" nesting="0" />
             <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS2" fgColor="8000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS3" fgColor="808040" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS4" fgColor="8080FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS5" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS6" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="1" nesting="0" />
             <WordsStyle name="KEYWORDS7" fgColor="B03022" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="OPERATORS" fgColor="FF0000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="FOLDER IN CODE2" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS1" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS2" fgColor="FF00FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS4" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
             <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
         </Styles>
     </UserLang>
</NotepadPlus>

 
Для установки скачиваем редактор (если нет). Далее в меню:

Синтаксисы->Задать свой синтаксис...->Импортировать.
Прикрепления: freebasic.xml(10.8 Kb)


Вы сохраняете власть над людьми покуда оставляете им что-то…Отберите у человека все, и этот человек уже будет неподвластен вам…
 
Форум » Вспомогательное программное обеспечение » Вспомогательные утилиты для программистов » Тема подсветки FB для NotePad++
  • Страница 1 из 1
  • 1
Поиск: