Syntax Highlighting for English?

This is a discussion on Syntax Highlighting for English? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; > The same thing can be said about code. The forums are not a compiler, you dope....

  1. #16
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    > The same thing can be said about code.

    The forums are not a compiler, you dope.

  2. #17
    Registered User
    Join Date
    Aug 2005
    Posts
    197
    Quote Originally Posted by Queatrix View Post
    I think it depends, we don't need it, therefore it would actually be an annoyance. But if someone where to grow up learning english that way, then they would become dependent on it and would have a hard time without it. Again, it's all about conditioning. Unique idea though.
    I think it would engage the senses more fully. In 1900 one could have said that adding audio to motion pictures would just be redundant and an annoyance. Today motion pictures with audio is the standard. I think most would agree with me that motion pictures are much better as a result.

  3. #18
    Registered User
    Join Date
    Aug 2005
    Posts
    197
    Quote Originally Posted by Govtcheez View Post
    It is a horrible, horrible idea that will be of no use to anyone and would require considerable programming to accomplish. It's not going to happen.
    It makes reading code more pleasant. I think it would it would do the same for English. If you had access to a dictionary data base, it could be coded in a matter of hours.

  4. #19
    Registered User
    Join Date
    Aug 2005
    Posts
    197
    Quote Originally Posted by Govtcheez View Post
    > The same thing can be said about code.

    The forums are not a compiler
    I wasn't suggesting this for use on the forums.
    you dope.
    This is off topic.

  5. #20
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Quote Originally Posted by thetinman View Post
    I wasn't suggesting this for use on the forums.
    My mistake then. It seems I wasn't the only person making that assumption, though.

    If you're going to use it as a tool to teach ESL or something like that I can see a use for it, but for general use anywhere else it'd be very grating.

  6. #21
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by thetinman View Post
    It makes reading code more pleasant. I think it would it would do the same for English. If you had access to a dictionary data base, it could be coded in a matter of hours.
    Nice hand-waving there. It could not be "coded in a couple of hours." Once again, "He eats shoots and leaves." Is shoots a verb or a noun? How the hell is a dictionary going to help?

    Even in C there would be problems. The classic example is the hack between the parser and the lexer where an identifier is retyped to be a typename by a typedef. The compiler itself is unable to determine on a merely syntactic level whether a particular symbol is an identifier or a typename. Therefore some weird back-channels between the parser and the lexer are required.

    Basically, you don't understand anything about languages.

  7. #22
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by thetinman View Post
    I think it would engage the senses more fully. In 1900 one could have said that adding audio to motion pictures would just be redundant and an annoyance. Today motion pictures with audio is the standard. I think most would agree with me that motion pictures are much better as a result.
    that doesn't make sense. Art imitates life in most cases, audio to motion picture was portraying film the way plays, operas, ballet and others have been displaying stories hundreds of years before motion picture. Audio is a part of life and that needed to be reflected if motion picture was going to be worth a damn 100 years later. What does spell checking imitate? The annoying guy who interrupts your story so that he can say, "It's 'Exacerbate' not 'eggsasibate'" before I punch him in the face.

  8. #23
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    It is an interesting idea, actually. The implementation must be very robust, or else the result will only be confusing.

    It might actually improve the speed of reading, but it would probably take a while before the brain got used to take advantage of the extra information.


    EDIT: I agree that implementing it here would be a horrible idea, but the concept itself is interesting.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  9. #24
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Sang-drax View Post
    It might actually improve the speed of reading, but it would probably take a while before the brain got used to take advantage of the extra information.
    What extra information?

  10. #25
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by brewbuck View Post
    What extra information?
    Umm, the colors and the boldness of the words.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  11. #26
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Note that this thread was from May 16, 2 weeks ago, and was last replied on that same day before these new ones. I've already mentioned my thoughts on this - worthy only when proofreading a story or the like, but useless otherwise.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  12. #27
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Sang-drax View Post
    Umm, the colors and the boldness of the words.
    Which is extra information how? I think you don't understand what "information" is.

    If the sentence can be highlighted using only the information available within the sentence, then BY DEFINITION the highlighting adds NO NEW information.

  13. #28
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Quote Originally Posted by brewbuck View Post
    Which is extra information how? I think you don't understand what "information" is.

    If the sentence can be highlighted using only the information available within the sentence, then BY DEFINITION the highlighting adds NO NEW information.
    It's not highlighting based on only the info in the sentence, though. It's going to have to be cross referenced against an extensive dictionary. You can't just look at a string of words and determine the parts of speech without knowing things about grammar and how specific words act. That's the extra information.

  14. #29
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by brewbuck View Post
    Which is extra information how? I think you don't understand what "information" is.

    If the sentence can be highlighted using only the information available within the sentence, then BY DEFINITION the highlighting adds NO NEW information.
    I don't know why I am answering you at all...

    Yes, it is extra information. A simpler example is source code. Nothing in the source code defines which words are keywords and which words aren't. The syntax highligher uses external information from a dictionary and adds new information to the source code from this dictionary by making certain words bold. I hope you understand now.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  15. #30
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by Sang-drax View Post
    I don't know why I am answering you at all...

    Nothing in the source code defines which words are keywords and which words aren't.
    The LANGUAGE defines it. Strings of lexemes do not stand on their own, but are only meaningful with respect to a grammar. Just because the first line of a C program isn't "using language c;" doesn't mean this information is not available.

    I hope you understand now.
    I understand that you obviously have no knowledge of either information theory or linguistic theory, if that's what you mean.

Page 2 of 4 FirstFirst 1234 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 09:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Using VC Toolkit 2003
    By Noobwaker in forum Windows Programming
    Replies: 8
    Last Post: 03-13-2006, 07:33 AM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM

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