Specifying an Icon

In SAS Studio, icons are used to help quickly identify a task, snippet, or repository. You can specify custom icons to identify each task, snippet, and repository.
Here is an example of the Icon element in the repository.xml file for the Snippets Repository.
<?xml version="1.0" encoding="UTF-8"?>

<Repository label="Example SAS Studio Repositories">
   <Icon class="" uri="./repository.png"/>

   ...
</Repository>
In the Icon element, the path to the icon can be absolute or relative. In this example, the repository.png file is saved in the same directory as the repository.xml file, so the path is relative. When you view the repository in SAS Studio, you see the repository.png icon next to Snippets Repository in the Snippets sections of the navigation pane.
Example of an External Icon
You can also use the Icon element in the tasks.xml and snippets.xml files to specify icons for individual tasks and snippets. For example, here is part the snippets.xml file for the DBMS Snippets category. The highlighted code shows the Icon element for the Assign Oracle Library snippet.
<Snippets>
	<Snippet>
         <Name label="Assign Oracle Library"/>
            <Documentation uri="https://support.sas.com/documentation/cdl/en/
               acreldb/68028/HTML/default/viewer.htm#
               p1ujrhdoe1p743n12awcf7mwyg81.htm" 
               label="SAS/ACCESS Interface to Oracle"/>
	   <Template uri="./oracle.sas"/>
	   <Icon uri="http://rocketdock.com/images/screenshots/oracle.png"/>
	</Snippet>
…
<Snippets>
In this case, the icon is available from an external site, so when SAS Studio loads the repository, it pulls the image from this external site. As a result, the icon from the external site appears next to Assign Oracle Library.
External Icon for the Assign Oracle Library