Like Tree8Likes

[code] coloring breaks [color]

This is a discussion on [code] coloring breaks [color] within the General Discussions forums, part of the Community Boards category; Okay, so I reordered the priorities because I was running into trouble having the highlighting automatically work from quick reply. ...

  1. #46
    Administrator webmaster's Avatar
    Join Date
    Aug 2001
    Posts
    969
    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
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,536
    I like it! The code is now alive! Muahahaha!
    webmaster likes this.
    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.

Page 4 of 4 FirstFirst 1234
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, 02:26 AM
  3. Code-Coloring
    By Vber in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 01-08-2003, 10:29 PM
  4. Paste code into word keeping color
    By GaGi in forum C++ Programming
    Replies: 1
    Last Post: 02-07-2002, 07:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21