locked
VS2012 for Web - Adding to Schemas for html and css RRS feed

  • Question

  • User-723833757 posted

    I was wondering if there was any way to change the schema for intellisense and errors to add items from facebook - twitter - share this.

    <span class='st_sharethis_large' displaytext='ShareThis'></span>
    	   <span class='st_googleplus_large' displaytext='Google +'></span>
    	   <span class='st_facebook_large' displaytext='Facebook'></span>
    	   <span class='st_twitter_large' displaytext='Tweet'></span>
    	   <span class='st_linkedin_large' displaytext='LinkedIn'></span>
    	   <span class='st_pinterest_large' displaytext='Pinterest'></span>
    	   <span class='st_wordpress_large' displaytext='WordPress'></span>
    	   <span class='st_email_large' displaytext='Email'></span>

    I get errors on build because displaytext='' is not recognized, also facebook og etc..

    I tried looking for the schema and found html5, but when I added something to test it didn't work.

    Sunday, March 16, 2014 12:15 AM

Answers

  • User-166373564 posted

    Hi Bobby-Z

    if there was any way to change the schema for intellisense and errors to add items from facebook - twitter - share this

    Please take a look at this example in fiddle,

    <span class='st_facebook_large' displayText='Facebook'></span>
    <span class='st_twitter_large' displayText='Tweet'></span>
    <span class='st_linkedin_large' displayText='LinkedIn'></span>
    <span class='st_googleplus_large' displayText='Google +'></span>
    <span class='st_email_large' displayText='Email'></span>
    <span class='st_sharethis_large' displayText='ShareThis'></span>
    <span class='st_fblike_large' displayText='Facebook Like'></span>
    <span class='st_plusone_large' displayText='Google +1'></span>
    
    <script type="text/javascript">var switchTo5x=false;</script>
    <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
    <script type="text/javascript">stLight.options({publisher: "ur-22cc647b-2be-2114-fe32-8c2f8b9ab95e", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>

    CSS:

    span {display:inline-block; height:32px; line-height:32px;}

    Here is the test in fiddle: http://jsfiddle.net/dPxVm/2/ 

    hope it helps.

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 17, 2014 10:05 PM