Ask coding questions

← Back to all posts
Settings issue
JonathanWesely (2)

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?

Commentshotnewtop
DynamicSquid (4393)

So you want to change the colour of your code?

JonathanWesely (2)

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

JonathanWesely (2)

@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

DynamicSquid (4393)

@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".

JonathanWesely (2)

@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

DynamicSquid (4393)

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

JonathanWesely (2)

@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

DynamicSquid (4393)

@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.

JonathanWesely (2)

@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

DynamicSquid (4393)

@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.

DynamicSquid (4393)

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

JonathanWesely (2)

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

DynamicSquid (4393)

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