Got problem in lsset 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 lsset 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 a 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.
Thank you in advance.
listings sharelatex
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 lsset 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 a 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.
Thank you in advance.
listings sharelatex
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 lsset 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 a 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.
Thank you in advance.
listings sharelatex
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 lsset 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 a 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.
Thank you in advance.
listings sharelatex
listings sharelatex
edited 10 mins ago
Hood Chatham
4,0671227
4,0671227
asked 13 mins ago
Encipher
684
684
add a comment |
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-lsset-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