Got problem in lstset type
up vote
0
down vote
favorite
Code
lstset{numbers=left,commentstyle=color{mygreen},keywordstyle=color{blue},stringstyle=color{codegreen},,numberstyle=color{blue},backgroundcolor=color{backcolour}}
In this picture the left line numbers (e.g 1, 2) change in blue color. But the number inside the list Diff_datatypes (e.g 1) is not change in blue. In the lstset
I set the numberstyle as blue as shown above. But the problem is that it change the line number color not the variable color.
Also there is another value False which is a boolean datatype. So how could I change the color of False in blue. I searched various website but do not find anything like booleanstyle.
listings
add a comment |
up vote
0
down vote
favorite
Code
lstset{numbers=left,commentstyle=color{mygreen},keywordstyle=color{blue},stringstyle=color{codegreen},,numberstyle=color{blue},backgroundcolor=color{backcolour}}
In this picture the left line numbers (e.g 1, 2) change in blue color. But the number inside the list Diff_datatypes (e.g 1) is not change in blue. In the lstset
I set the numberstyle as blue as shown above. But the problem is that it change the line number color not the variable color.
Also there is another value False which is a boolean datatype. So how could I change the color of False in blue. I searched various website but do not find anything like booleanstyle.
listings
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.
– David Purton
2 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Code
lstset{numbers=left,commentstyle=color{mygreen},keywordstyle=color{blue},stringstyle=color{codegreen},,numberstyle=color{blue},backgroundcolor=color{backcolour}}
In this picture the left line numbers (e.g 1, 2) change in blue color. But the number inside the list Diff_datatypes (e.g 1) is not change in blue. In the lstset
I set the numberstyle as blue as shown above. But the problem is that it change the line number color not the variable color.
Also there is another value False which is a boolean datatype. So how could I change the color of False in blue. I searched various website but do not find anything like booleanstyle.
listings
Code
lstset{numbers=left,commentstyle=color{mygreen},keywordstyle=color{blue},stringstyle=color{codegreen},,numberstyle=color{blue},backgroundcolor=color{backcolour}}
In this picture the left line numbers (e.g 1, 2) change in blue color. But the number inside the list Diff_datatypes (e.g 1) is not change in blue. In the lstset
I set the numberstyle as blue as shown above. But the problem is that it change the line number color not the variable color.
Also there is another value False which is a boolean datatype. So how could I change the color of False in blue. I searched various website but do not find anything like booleanstyle.
listings
listings
edited 1 min ago
CarLaTeX
27.5k445120
27.5k445120
asked 3 hours ago
Encipher
684
684
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.
– David Purton
2 hours ago
add a comment |
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.
– David Purton
2 hours ago
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.– David Purton
2 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461930%2fgot-problem-in-lstset-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
See tex.stackexchange.com/questions/217505/…
– David Purton
2 hours ago
numberstyle
is for the code line numbers. It does not affect any numbers in your code.– David Purton
2 hours ago