Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No color highlight #724

Open
zeroarst opened this issue Jul 25, 2024 · 1 comment
Open

No color highlight #724

zeroarst opened this issue Jul 25, 2024 · 1 comment

Comments

@zeroarst
Copy link

zeroarst commented Jul 25, 2024

I have customized color scheme. It works fine on my project. But for leetcode Kotlin files, it does not apply those colors.
Leetcode Kotlin file
image

Project Kotlin file.
image

Does anyone know how to fix that?

@3maoyap
Copy link

3maoyap commented Aug 4, 2024

Hi, @zeroarst . I met the same problem. All I did to solve it is as follows:

  1. New a project only for leetcode;
  2. Open Setting -> LeetCode Plugin
    2.1. Select Kotlin in CodeType;
    2.2. Change the TempFilePath to your project, for me is F:\Projects\leetcode\src\main\kotlin\com\example;
    2.3. Enable the Custom Template, and set the Code Template to what you like and comply with the kotlin project pattern, for me is
${question.content}
package com.example.leetcode.editor.cn;
fun main(){

}
${question.code}
  1. Enjoy your coding time!😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants