Author Topic: Color scheme is not applied for 1st buffer  (Read 3820 times)

tharada

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Color scheme is not applied for 1st buffer
« on: September 07, 2012, 11:35:24 AM »
When I open 1st buffer for a project,
color scheme is not applied the buffer.
(i.e. keywords, comments are not colorlized.)

All my projects are C++,
and I have not verified if I can reproduce same problem in different language project.

Is there any one who see same problem in your environment ?

---Environment---
SlickEdit 2012 (v17.0.2.0 32-bit)
OS: Windows 7
OS Version: 6.01.7601  Service Pack 1

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: Color scheme is not applied for 1st buffer
« Reply #1 on: September 14, 2012, 04:24:35 PM »
What is the extension of the file you're opening? By any chance is it a header file with no file extension? If you open a second file then switch back to the first, does the color coding show up?

A good quick check when this happens is to go to the "Document" menu and look for the "Select Mode" menu command. If the command looks like "Select Mode (C/C++)...", then SlickEdit is correctly determining the file type, and you should see color coding right away. So this is either a refresh problem, or there is something in the file that is tripping up the parser.
If the menu command looks like "Select Mode (Plain Text)...", then SlickEdit was not able to determine a language mode from the file extension or make a guess from the content of the first few lines in the file.

If you want to test this out with another language, you can go to the Project > All Workspaces > Sample Workspaces, and select the sample Java project.

tharada

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: Color scheme is not applied for 1st buffer
« Reply #2 on: September 21, 2012, 01:26:15 PM »
C/C++ file extensions in my workspace is .c,.cc,.h and .hh.

I checked "Document"->"Select Mode" for first buffer,
and it displayed "Select Mode (Plain Text)...".

When I select C/C++ from "Select Mode", the color coding shows up correctly.
But when I close all buffer and open a file again, the file detected as plain text
and color coding does not show up correctly.

Gered

  • Community Member
  • Posts: 27
  • Hero Points: 1
Re: Color scheme is not applied for 1st buffer
« Reply #3 on: September 21, 2012, 04:51:11 PM »
Also have this same problem. For me I've noticed sometimes works and sometimes doesn't on the first buffer. Also C/C++ source files (noticed it with all of c/cpp/h files).