[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 296932] New: Syntax Highlighting inside C++0x string literals
From:       <steve1 () soapforge ! com>
Date:       2012-03-28 1:55:28
Message-ID: bug-296932-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=296932

            Bug ID: 296932
          Severity: wishlist
           Version: unspecified
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: Syntax Highlighting inside C++0x string literals
    Classification: Unclassified
                OS: Linux
          Reporter: steve1@soapforge.com
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: language
           Product: kdevplatform

This is a feature request:  

C++0x supports new 'string literals'  These are literals that are optimized to
contain code or other unformatted text, such as HTML code, regular expressions,
scripts, etc.  For example, see
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2053.html for some
motivating examples.  

Note that in each of these examples, the motivation is to allow C++0x strings
to easily contain special characters like "" or \n without additional markup,
for use in inline code.

When typing code (in my case, GLSL or OpenCL) code into a string literal, I get
some nice advantages, like the script being included directly into my binary. 
However, I lose the advantage of syntax highlighting.

Since C++0x string literals are often used to put code inline in a C++ file, it
would be very nice if KDevelop's (and/or Kate)'s syntax highlighting would
apply inside of a C++0x string literal.  That way, for example, If I used A
C++0x string literal for an html page for CGI, the html inside the literal
would be highlighted correctly.  The same thing would be nice for GLSL or
OpenCL, or basically any language the syntax highlighter currently supports.

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic