UltraEdit-32 高亮显示fortran关键字 http://bbs.lasg.ac.cn/cgi-bin/forum/topic.cgi?forum=7&topic=9 在ultraedit-32中,我们用view菜单下view as(highlighting file type)可选择高亮显示c/c++文件、vb、html、perl、php、java、xml等多种文件的关键字,为编程和阅读带来方便。但软件没有为我们设置fortran语言关键字的高亮显示,十分不便。现在,将以下代码粘贴到ultraedit-32目录下的wordfile.txt文件中,即可高亮显示 fortran语言关键字,喜欢用ultraedit-32的可以试试: /L9"Fortran" FORTRAN_LANG File Extensions = FOR FTN F F90 /C1"Keywords" access assign accept backspace block black byte complex complex* character character* close call common complex continue case double dimension data do direct default deleter err end endif enddo else elseif endfile entry equivalence external exit file form function format fmt find goto go integer integer* if iostat implicit inquire intrinsic include logical logical* open options parameter pause precision print program public real real* read rec recl return rewind rewrite status save stop subroutine save select then to type unit use unlock write /C2"FORTRAN FUNCTION" abs acos aimag aint alog alog10 amax0 amax1 amin0 amin1 amod anint asin atan atan2 cabs ccos char clog cmplx conjg cos cosh csin csqrt dabs dacos dasin datan datan2 dble dcos dcosh ddim dexp dim dint dlog dlog10 dmax1 dmin1 dmod dnint dprod dreal dsign dsin dsinh dsqrt dtan dtanh exp float iabs ichar idim idint idnint ifix index int isign len lge lgt lle llt log log10 max max0 max1 min min0 min1 mod nint sign sin sinh sngl sqrt tan tanh /C3"C/C++ Keywords" auto bool case char const catch class const_cast default defined dllexport dllimport enum extern export float for false friend mutable new namespace naked long operator private protected public register reinterpret_cast short signed sizeof static struct switch static_cast typedef template this throw true try typeid typename thread union unsigned using uuid void volatile virtual while wchar_t __asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 __int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof __multiple_inheritance __single_inheritance __virtual_inheritance #define #error #include #elif #if #line #else #ifdef #pragma #endif #ifndef #undef 好用的话,就赶紧用吧,不好用的话也不要想打我。(这一行不必粘贴,切切,切切!)