Jatana / FastOlympicCoding

Tools for competitive programming for Sublime Text 3 & 4
399 stars 48 forks source link

Changing Colors of input and ouput #15

Closed prabh1601 closed 3 years ago

prabh1601 commented 4 years ago

Well one thing to note is that the colors of integer output are different from character output data.. This ain't much of a problem but it does affect the perceiving the output data and such.. So I was just wondering that is it possible to have single color for the same and also is it possible to customize the colors as per the desired.. Thanks in advanced for the same!

Jatana commented 4 years ago

Sublime Text uses syntax defining files to highlight text.

To change the default syntax highlighting, you can modify Packages/CppFastOlympicCoding/TestSyntax.sublime-syntax file.

prabh1601 commented 4 years ago

Well thanks for the help, I am going through the documentations you provided but still I ain't sure or maybe getting the point that what things I need to modify in the syntax file. I code for the same would be very nice of you, although even if you can guide me that what i need to do instead, that would more than enough nice gesture.

Jatana commented 4 years ago

Try the following:

%YAML 1.2
---
name: TestSyntax
file_extensions: []
scope: source.TestSyntax

contexts:
  main:
    - match: Test
      scope: storage.type.OPD
    - match: "(} )(out)( {)"
      captures: 
        2: storage.type.OPD
    - match: (} )(rtcode)
      captures:
        2: storage.type.OPD
prabh1601 commented 4 years ago

So nice of you ... Really appreciated .... But one little thing ... since I really don't know how thing are working in this syntax file .. is possible to give a custom color to things rather than just having a plain white as the output Anyways again thanks for the help