Thread: [code] coloring breaks [color]

  1. #46
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Okay, so I reordered the priorities because I was running into trouble having the highlighting automatically work from quick reply. Instead, I've now added a button to go to plain text and back to highlighted text. I suspect this probably needs to be a user setting, since having to toggle all the time would get pretty annoying. So the remaining items are now (in my new priority order):

    1) automatically pick up the right kind of brush from the forum URL (right now it's always C++, but it should be possible to properly color C# and C)
    2) Make it automatically run when a post is submitted. (For now, it falls back to the old code tag box until a page refresh. Note that this impacts only the poster--anyone loading the page will see the highlighting, as will the poster once refreshing.) My first attempt at fixing this failed; I need to look at the sequence of a "Post Quick Reply" operation.)
    3) Adding a user setting for disabling syntax highlighting.

  2. #47
    Join Date
    Oct 2007
    Inside my computer
    I like it! The code is now alive! Muahahaha!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Switching from MinGW to Pelles C, code breaks
    By Hear.Me.ROAR in forum C Programming
    Replies: 4
    Last Post: 08-11-2011, 11:21 AM
  2. my code breaks unique pointer rule?
    By George2 in forum C++ Programming
    Replies: 19
    Last Post: 02-17-2008, 03:26 AM
  3. Code-Coloring
    By Vber in forum A Brief History of
    Replies: 7
    Last Post: 01-08-2003, 11:29 PM
  4. Paste code into word keeping color
    By GaGi in forum C++ Programming
    Replies: 1
    Last Post: 02-07-2002, 08:26 AM