Skip to content
← Back to Community
Settings issue
Profile icon
JonathanWesely

Hey so I'm having an issue where all my code becomes grey, (its happening in the LL.functions file) and I don't get that feedback for errors through color? Does anybody know how to fix this issue?

Voters
Profile icon
ckasperson
Profile icon
BirdBoy021
Profile icon
DynamicSquid
Profile icon
JonathanWesely
Comments
hotnewtop
Profile icon
DynamicSquid

So you want to change the colour of your code?

Profile icon
JonathanWesely

@DynamicSquid yes I want my LL.functions file to have the color assist

Profile icon
JonathanWesely

@DynamicSquid actually now I seem to have no color assist on LL.functions and LL.header. I could have sworn when I was working on it earlier they both had color assist like it is in main.cpp

Profile icon
DynamicSquid

@JonathanWesely Have you tried running your code on another compiler? Perhaps VS? I say this because repl.it sometimes doesn't support additional "add-ons".

Profile icon
JonathanWesely

@DynamicSquid the code runs perfectly normal, I just don't understand why repl stopped giving me the color assist, it makes it harder to edit stuff now

Profile icon
DynamicSquid

@JonathanWesely Oh... you mean the source code? I thought you were talking about the console output.

Profile icon
DynamicSquid

@JonathanWesely Try removing the comments.

Profile icon
JonathanWesely

@DynamicSquid yes my source code in both my LL.functions file and my LL.header file is all black, it has no color assist like main.cpp

Profile icon
DynamicSquid

@JonathanWesely On line 36 and 44, you have /* in your code. That is a multi line comment, and will turn everything in between then into a comment, or gray.

Profile icon
JonathanWesely

@DynamicSquid Yes, I know, that is not the issue, main.cpp is totally fine, the issue is that the other two files, LL.header, and LL.functions, don't have any color and the code is normal, I don't know why

Profile icon
DynamicSquid

@JonathanWesely Oh..... I see now. Okay. That's because the other two files are not in C++. You didn't give the files a language to operate in, so it's just plain text. Try renaming your files with .cpp at the end.

Profile icon
DynamicSquid

Oh, and be sure to only have one period in your file name

Profile icon
JonathanWesely

@DynamicSquid YES ok that works, thank you very much!!!!!!

Profile icon
DynamicSquid

@JonathanWesely Yup, np. Sorry it took a while for me to understand you xD