Themes
Syntax Highlighting
Learn how to customize syntax highlighting colors for different code elements like variables, functions, keywords, and more in your Replit theme.
Syntax highlighting enables you to color specific tokens in your code. Imagine what a life it would be if all of your code was only one color! Thanks to Custom Themes, you can now customize syntax highlighting to your liking!
-
Usually this color is applied when you use or define a variable in which no declaration keyword is used.Variable Names
Javascript
Python
-
This color gets put into use when defining a variable with a definition keyword such asVariable Definitions
const
,var
,int
, etc.
Javascript
Java
-
This color gets applied when you call a function.Function References
Javascript
Python
-
When defining a function, this is the color that your function definition will be.Function Definitions
Javascript
Python
-
This one color highlights the important keywords in your code such as variable definitions, class definitions, imports/exports, and more!Keywords
Javascript
Python
-
This color gets applied when accessing a property from a variable.Property Names
Javascript
-
This color gets applied when defining a method or property.Property Definitions
Javascript
-
This color gets applied when calling a method.Function Properties
Javascript
Python
-
Tag Names
This color applies to tags in HTML and JSX.
HTML
-
Type Names
This color applies to types in strongly typed languages such as Java, TypeScript, etc.
TypeScript
Java
-
Class Names
When defining or, in some cases, using a class, this is the color that will be used.
Javascript
Python
-
This color gets usually gets applied in HTML and JSX tag attributes.Attribute Names
HTML
JSX
-
This color applies to all code comments.Comments
Javascript
Python
-
This color refers to strings in code.Strings
Javascript
Python
-
This color refers to all numerical values including integers, floats, doubles, and more.Numbers
Javascript
Python
-
This color gets applied to boolean values likeBooleans
true
andfalse
.
Javascript
Python
-
This color gets applied for regular expressions.Regular Expressions
Javascript
-
Operators such asOperators
+
,-
,*
,/
, and more get highlighted with this color.
Javascript
Python
-
This colors square brackets, usually theSquare Brackets
[
and]
characters.
Javascript
Python
-
This colors angle brackets, usually theAngle Brackets
<
and>
characters, when they aren’t being used as part of HTML and JSX tags or other token types.
HTML
Congratulations on getting your syntax highlighting colors customized! Now let’s learn how to further improve the design of your theme.