Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4499

Functionality to convert a JSON string to proper CSS.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Editor
    • Environment:

      Windows 8 x64, Aptana Studio 3.0.9

      Description

      I'm not sure how relevant anyone else will find this, but I think a very handy feature would be to convert a propery JSON string into valid CSS if copied into a CSS document.

      Often times when I'm testing my JavaScript, I will add CSS properties on the fly. Once the properties are confirmed, I move them into the proper stylesheet.

      Example:
      $("#myElement").css(

      { "background-color": "#fff", "text-align": "center", "z-index": 500 }

      );

      Now, I'd like to copy it to my stylesheet as these are now the accepted properties. A direct copy and paste results in:
      .myelement-class

      { "background-color": "#fff", "text-align": "center", "z-index": 500 }

      When it would be preferable to have the quotes stripped out and the commas replaced with semicolons. Preferred output after a paste (proper CSS):
      .myelement-class

      { background-color: #fff; text-align: center; z-index: 500; }

      Anyhoo, just a nifty feature I could certainly make use of and I'm sure many others as well! Not a biggy, but a definite time-saver!

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              selosindis Scott Gibson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration