Author Topic: hex numbers not color-coded properly in Python Build window  (Read 1954 times)

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
hex numbers not color-coded properly in Python Build window
« on: November 08, 2017, 05:44:18 PM »
SE seems to apply some special coloring to numbers in the Build window. That's fine, but it does not seem to handle hex numbers correctly. If I execute the following Python code

      junk = 0x56A23
      print("{:04X}".format(junk))

the Build window displays the number 56A23, but the 56 part is a bright pink color, and the A23 is black. See attached screenshot.

-------------------------------------------------------------------

SlickEdit Pro 2017 (v22.0.0.9 64-bit)

Serial number: XXXXX
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\22\slickedit.lic

Build Date: November 03, 2017
Emulation: CUA

OS: Windows 10 x64
OS Version: 10.00.0 
Memory: 45% Load, 11236MB/24454MB Physical, 14305MB/28038MB Page File, 713MB/134217727MB Virtual
Shell Information: C:\WINDOWS\system32\cmd.exe /q
Screen Size: 1920 x 1080, 1440 x 810, 1920 x 1080

Project Type: Python
Language: .py (Python)
Encoding: Automatic

Installation Directory: C:\Program Files\SlickEdit Pro 22.0.0\ (non-removable drive,NTFS,162522MB free)
Configuration Directory: C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\22.0.0\ (non-removable drive,NTFS,162522MB free)
Migrated from: C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\21.0.3\
Spill File: C:\Users\David\AppData\Local\Temp\$slk.22204 (non-removable drive,NTFS,162522MB free)

Hotfixes:
C:\Users\David\OneDrive - physiowave.com\Documents\My SlickEdit Config\22.0.0\hotfixes\hotfix_se2200_9_cumulative.zip (Revision: 9)




davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: hex numbers not color-coded properly in Python Build window
« Reply #1 on: November 08, 2017, 05:50:00 PM »
Note that even if I include a leading "0x", the color coding is messed up. See attached.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: hex numbers not color-coded properly in Python Build window
« Reply #2 on: November 10, 2017, 02:08:48 PM »
Sounds like color coding got accidentally turned on (it's off by default). To turn off color coding for the Build window go to  Tools>Options>Languages>SlickEdit Languages>Process and set the Color Coding profile to (None).

davehohl

  • Senior Community Member
  • Posts: 271
  • Hero Points: 27
Re: hex numbers not color-coded properly in Python Build window
« Reply #3 on: November 10, 2017, 04:34:30 PM »
Thanks, Clark. Somehow that profile had gotten set to "IAR Error". I have no idea how that happened, since I did not even know about the "Process" language setting before. But it's working fine now.