2024年3月9日发(作者:)

计算机交流平台:计算机故障_计算机论坛 wy

关于Notepad++编辑java文件关键字变色的设置

NotePad++关键字变色

1.点击设置→语言格式设置...

2.在打开的语言格式设置界面中,选择语言:下面的java,在style:中选择TYPEWORD,(这一

步很关键)见下图中蓝色部分。

3.在下图的右下角有个自定义关键字,把你想要变色的关键字都添加到其中就可以了,然后

点击保存并关闭就完成了关键字的添加。

4.新建一个文件后保存为***.java,就可以看到关键字已经变色了。

5.怎么输入java中的关键字。java中的关键字不是很多,但类很多。如果这么多的类一个一

个的输入其中太浪费时间了。你如果有好的办法你可以给我留言,但我也有一个比较好办法

那就是在EditPlus2编辑器中是java类可以变色的,那也就是说,它的安装文件中一定中一

个文件储存了这些关键字。那么具体怎么办呢?

在EditPlus2的安装文件下文件,用EditPlus2打开,就可以看到其中很多的关键字。

复制下来拷贝到自定义关键字文本框中就可以了。

/27921 "

_xhe_src="/27921 "/>

中的关键字及类贴出来以方便大家。

abstract

boolean

break

byte

case

catch

char

class

const

continue

default

do

double

else

extends

final

finally

float

for

goto

if

implements

import

计算机交流平台:计算机故障_计算机论坛 wy

instanceof

int

interface

long

native

new

package

private

protected

public

return

short

static

strictfp

super

switch

synchronized

this

throw

throws

transient

try

void

volatile

while

#KEYWORD=Predifinedclasses

AbstractAction

AbstractBorder

AbstractButton

AbstractCellEditor

AbstractCollection

AbstractColorChooserPanel

AbstractDocument

uteContext

t

tEdit

AbstractLayoutCache

mensions

AbstractList

AbstractListModel

AbstractMap

AbstractMethodError