Photoshop transduction plugin concept at @ annotation era

Source: Internet
Author: User

Today's languages provide an annotation mechanism that greatly simplifies the deployment of developers.

However, Photoshop cut-chart work has been carried out by people mechanical, why can not be handed over to the machine to complete the hard work, what is missing is only a specification, inform Photoshop How to do this thing, As long as Adobe adds a multiline text box to the new layer version of Photoshop for storing @Annotation annotations , the rest depends on how I do it:

    1. Layer nesting corresponding HTML tag nesting

The default is div tag nesting

If you want to use a different label, then:

Set to:

{

TagName: "Span"

}

Set Style:


{

TagName: "Span",

style:{

float: ' Left ',

"Font-size": "12px",

Color: ' #c00 '

},

Stylemode: ' Inner ',

stylename:[' TextContainer ', ' Sidemenu '],

Text: ' Test content '

}


Generate Code = =

<span class= "TextContainer sidemenu" style= "float:left;font-size: ' 12px '; color: ' #c00 ';" > Test Content </span>




2. A layer without annotations by default will not generate code

3. Layer folders can be set to merge layer results within layers


Photoshop transduction plugin concept at @ annotation era

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.