• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 1.1
    • None
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Syntax Highlighting already exists for Java and XML, highlighting for Java Script (ECMA 232) would also be extreemly useful for us.

      As most of our frontends are done in Flash, Action Script support would also be invaliuble to us if we were to use confluence as our documentation platform (which we do).

      The only main difference between JS and AS is the list of predefined functions/classes/objects. The ability to have the JS predefined functions and then be able to add groups of predefined functions (eg: AS core functions, and then custom core api functions/classes/objects).

            [CONFSERVER-893] Syntax Highlighting for Java Script and Action Script

            Issue CONF-1093 created.

            Action Script (and secondly Java Script) syntax would be widely used in our documentation project. The sooner that functionality is available the better! (from our perspective)

            Dan Hardiker added a comment - Issue CONF-1093 created. Action Script (and secondly Java Script) syntax would be widely used in our documentation project. The sooner that functionality is available the better! (from our perspective)

            Well, having such feature so that the users themselves can define their own syntax highlighting is just great and I like the idea!
            But I'm afraid that it's not possible to do in one shot as we should first decide on the syntax highlighting file format. Whether we want to make use of those already existed ones (such as EditPlus, TextPad or so) or we're gonna have our own format (XML or so). This will be used to replace the currently hard-coded regular expressions inside our java code (Code Formatting filters) and will make the whole concept internally dynamic.
            Finally, at the last phase we'll open the interface to the users either to directly define their syntax highlighting format via web UI or to import from the already existed ones!

            So I guess it's better to close this issue and you please file another JIRA issue specifically for this new feature (so that you can get the change notifications).
            In the mean while, please let me know if having ActionScript highlighting is important to you so I add such support in the current hard-coded manner. Or you want to wait for that neat feature

            Armond Avanes added a comment - Well, having such feature so that the users themselves can define their own syntax highlighting is just great and I like the idea! But I'm afraid that it's not possible to do in one shot as we should first decide on the syntax highlighting file format. Whether we want to make use of those already existed ones (such as EditPlus, TextPad or so) or we're gonna have our own format (XML or so). This will be used to replace the currently hard-coded regular expressions inside our java code (Code Formatting filters) and will make the whole concept internally dynamic. Finally, at the last phase we'll open the interface to the users either to directly define their syntax highlighting format via web UI or to import from the already existed ones! So I guess it's better to close this issue and you please file another JIRA issue specifically for this new feature (so that you can get the change notifications). In the mean while, please let me know if having ActionScript highlighting is important to you so I add such support in the current hard-coded manner. Or you want to wait for that neat feature

            I didnt mention any in hope that you could create various lists of keywords which could be populated / modified by the end users. Programs like "Edit Plus" have syntax highlighting files with the common keywords in. Goto http://www.editplus.com/others.html and search through for "action" or "flash". We use Flash MX (Flash 7) but detection of ActionScript 2.0 would be useful for others too.

            Being able to specify the following would allow great expandability, especially for companies that build their own libraries in javascript / flash / php / other scripting languages.

            • Name & Description of keyword list (identification purposes)
            • Colour (for highlighting purposes)
            • List of Keywords (for detection purposes)
            • Keyword type (function, declaration, ...)

            Maybe the keyword type could be a regex (or other pattern) on how to detect where these keywords go? That might be too complex. If you dont understand what Im driving at, just ask

            Just as a thought - would it be possible to use Syntax Highlighting files like EditPlus does? Perhaps even an import / conversion routine for other editor's highlighting files??

            Dan Hardiker added a comment - I didnt mention any in hope that you could create various lists of keywords which could be populated / modified by the end users. Programs like "Edit Plus" have syntax highlighting files with the common keywords in. Goto http://www.editplus.com/others.html and search through for "action" or "flash". We use Flash MX (Flash 7) but detection of ActionScript 2.0 would be useful for others too. Being able to specify the following would allow great expandability, especially for companies that build their own libraries in javascript / flash / php / other scripting languages. Name & Description of keyword list (identification purposes) Colour (for highlighting purposes) List of Keywords (for detection purposes) Keyword type (function, declaration, ...) Maybe the keyword type could be a regex (or other pattern) on how to detect where these keywords go? That might be too complex. If you dont understand what Im driving at, just ask Just as a thought - would it be possible to use Syntax Highlighting files like EditPlus does? Perhaps even an import / conversion routine for other editor's highlighting files??

            As a quick (but not complete) workaround you can use "Java" highlighting for JavaScript too. You won't get all you want there but it's better than nothing

            I'm working on highlighting... Btw, any resource I can get the ActionScript keywords, syntax and so?

            Armond Avanes added a comment - As a quick (but not complete) workaround you can use "Java" highlighting for JavaScript too. You won't get all you want there but it's better than nothing I'm working on highlighting... Btw, any resource I can get the ActionScript keywords, syntax and so?

              0e1d1dcfc133 Armond Avanes
              dhardiker Dan Hardiker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: