Share an Eclipse code color matching tutorial and color theme plugin

This article is reproduced from: https://www.cnblogs.com/rocky_/archive/2011/11/30/2269442.html Author: Rocky_ Please indicate the statement when reprinting.

 

Ecli ps e color theme plugin: Eclipse Color Theme

 

 

A great eclipse plug-in that can easily and conveniently implement code color matching under eclipse.
In addition, the plug-in author has also made an eclipse color matching website for this plug-in, with as many as 728 colors, and developers can also share their own color schemes on this website.

Plugin settings interface:


Installation method:
If it is Eclipse 3.6 (Helios) version, you can open Help -> Eclipse Marketplace and search for Eclipse Color Theme to install it.

Eclipse 3.5 (Galileo) version can be installed through Help -> Install New Software, click Add Site to add the installation address of Eclipse Color Theme.

Color matching download: click to enter the
plug-in source code hosted in gitsub: click to enter

Original address: http://junnan.org/blog/1329.htm

-----------------------------------------------------------------------------------------------------------------------------------------------------------------

Reference color scheme:

http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/

http://code.google.com/p/gnuemacscolorthemetest/

1. Eclipse color settings are in the menu Windows -> Preferences, as shown in Figure 1.

image

图1、Preferences

2. General -> Appearance -> Colors and Font, as shown in Figure 2.

image

Figure 2. Colors and Font

Font settings can be made here.

3. General -> Editors -> Text Editors, as shown in Figure 3.

image

Figure 3. Text Editors

The specific description is as follows:
Line number foreground line number foreground color setting
Current line highlight current line highlight color setting
Print margin print margin color setting
Find scope search scope color setting
Selection foreground color The foreground color of the selected content setting
Selection background color selection The background color of the content is set.
Background color is set. The background color is set.
Foreground color is set.

The Hyperlink hyperlink color is set.

4. General -> Editors -> Text Editors -> Annotations, as shown in Figure 4.

image

Figure 4. Annotations

C/C++ Occurrences C/C++ cursor variable highlight color setting

5. C/C++ -> Editor, as shown in Figure 5.

image

Figure 5. Editor

The specific description is as follows:
Matching brackets highlight Matching brackets highlight color setting
Inactive code highlight Inactive code highlighting (for example, statements where the #if condition fails)
Completion proposal background The background color of the auto-completion window Set the background color of the
Completion proposal foreground auto-completion window Foreground color setting

Parameter hint background
Parameter hint foreground
Source hover background Source hover window background color setting

6. C/C++->Editor->Syntax Coloring, as shown in Figure 6.

image

图6、Syntax Coloring

The specific description is as follows:
C/C++
-----Editor Editor
----------Syntax Coloring Syntax Coloring
-------------------- ------Enable semantic highlighting Enable syntax highlighting
----------------------------Element element
------- -------------------------Code code
----------------------- --------------Brace Brackets
---------------------------------- ---Built-in types built-in type name
------------------------------------Classes, Structs , Unions class, structure, union
------------------------------------Enumerators enumeration elements
-------------------------------------Enums enumeration type
--------- ----------------------------External SDK calls External SDK calls (eg: printf in stdio.h)
--- ----------------------------------Fields bit-fields
-------------------------------------Function declarationsFunction name declarations (definitions)
----- --------------------------------Functions function name (reference)
------------ -------------------------Global variablesGlobal variables
---------------------- ----------------Keywords keywords (excluding built-in type names)
------------------------ -------------Labels Labels
----------------------------------- --Local variable declarationsLocal variable definitions
------------------------------------Local variable referenceslocal variables Reference
-----------------------Macro definitions
-------- ------------------------------Macro references
------------------ --------------------Method declarations in the Method declarations class
----------------------- --------------Methods method reference
--------------------------------- ----Namespaces
-------------------------------------NumbersValue
------------- --------------------------Operators
--------------------- ----------------Others----Don't know why the name of the structure belongs to other
-------------------- -------------------Overloaded Operators
------------------------- ------------Parameter variablesFunction parameter variables
-------------------------------- -----Problems
-------------------------------------Static fields bit-fields)
-------------------------------------Static method invocations
------ -------------------------------StringsCharacters and Strings
------------- -----------------------Template parameters
------------------------- ------------Typedefs Types declared using typedefs
-------------------------------- -Assembly assembly language
-----------------------------------------Directives
------- ------------------------Labels Labels
-------------- -------------------Comments
----------------------------- ------------Multi-line commentMulti-line comment
------------------------------- ----------Single-line commentSingle-line comment
----------------------------------- -------Task TagsTask tags
---------------------------------Preprocessor preprocessing
--- ------------------------------------------Directives (pre- processing instructions)
---------------------------------------------Headers header Documents
---------------------------------------------
Others-- -----------------------------------------Doxygen
------------------ ----------------------Doxygen Multi-line Comment
----------------------------------------Doxygen Single-line Comment
----------------------------------------Doxygen Tag

 

1. Braces brackets

()[]{}

2.Built-in types built-in type name

chardoublefloatintlong

shortsignedunsignedvoid_Bool

_Complex_Imaginary

3.Classes, Structs, Unions class, structure, union (C++)

4.Enumerators enumeration elements

enum TEST {ZERO, ONE, TWO} test;

ZERO, ONE, TWO in the example are enumeration elements

5. Enums enumeration type

enum TEST {ZERO, ONE, TWO} test;

TEST in the example is an enumeration type

6. External SDK calls External SDK calls

For example: call the printf function in stdio.h

7. Fields area

Refers to member variables defined in struct or union

8.Function declarations function name declarations and definitions

9. Functions function name call

10.Global variablesGlobal variables

11.Keywords keywords (excluding built-in type names)

autobreakcaseconstcontinue

defaultdoelseenumextern

forgotoifinlineregister

restrictreturnsizeofstaticstruct

switchtypedefunionvolatilewhile

12. Labels

13.Local variable declarations local variable definitions

14.Local variable references

15.Macro definitions

16.Macro references

17.Method declarations class method declaration (C++)

18. Method reference of the Methods class (C++)

19.Namespaces(C++)

20.Numbers

21.Operators

22.Others (I don't know why the name of the structure belongs to others)

23.Overloaded Operators (C++)

24.Parameter variables function parameter variables

25.Problems (not sure what to use)

26.Static fields Static fields

Refers to member variables defined with static in struct or union

27.Static method invocations(C++)

28. Strings Characters and Strings

29.Template parameters(C++)

30. Typedefs use types declared by typedef

 

Original address: http://www.cnblogs.com/arci/archive/2011/01/23/1942646.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324193942&siteId=291194637