Frequently Asked Questions

What languages are supported?

As of version 2.1, SnippetsLab supports more than 500 language and text formats. For a complete list, see Supported Languages.

I am using iCloud sync, but I do not see SnippetsLab in the “iCloud Drive” folder. Is this a bug?

No. Typically, only document-based apps create entries in the iCloud Drive folder. These are apps that manage a file format and can open and edit arbitrary files with this format. Some examples are Pages and Numbers. On the other hand, SnippetsLab manages a single database that holds all your data, which is very similar to apps like Notes, Calendar or Reminders.

How do I use Dropbox, Google Drive, or other syncing services?

This can be achieved by moving the library from the default location to a folder managed by the syncing service. Please see Third-party Sync for detailed instructions.

Can I set a default language for new snippets?

Yes, you can set a default language for each folder by right-clicking on the sidebar and choosing an item from the Default Language submenu.

Can you add a new language or support adding custom languages?

It is not possible for users to add custom languages, and we can no longer prioritize individual requests for new languages. SnippetsLab uses the open-source project Pygments for syntax highlighting, so the best way is to contribute to the Pygments project directly. Additions will be included in SnippetsLab the next time it updates the bundled library version.

How do I mix languages in a single snippet?

For some popular language combinations (especially for languages that are used in web development), SnippetsLab provides special “combination” languages, such as “HTML+PHP” and “JavaScript+PHP.” For additional use cases, you may choose one of the following options:

  • Fragments: You can include multiple fragments to a single snippet. Each fragment can have separate language and notes. To learn more, please see Automatic Language Detection.

  • Markdown: With a markdown snippet, you can add an arbitrary number of code blocks, with in-place syntax highlighting support of the same wide range of languages. For details about all capabilities of Markdown snippets, please see Markdown Snippets.

Can I assign a tag to multiple snippets at once?

This can be done by selecting all snippets that you want the tag assigned, then dragging and dropping them to the desired tag in the sidebar.

I inserted a local image into a Markdown snippet, but the image no longer shows the next time I open the app.

Inserting local images to Markdown is not yet supported. This is due to the sandboxing restrictions set by Apple–SnippetsLab cannot access arbitrary files on the disk. Sometimes if you drag an image to the app, it will be granted temporary access by the system, but the app will lose access the next time it is opened.

Can I hide the app icon from the Dock?

To hide the dock icon, open SnippetsLab > Preferences… from the main menu, then choose the Assistant tab. Make sure SnippetsLab Assistant is enabled, and select Hide dock icon. You cannot hide the dock icon when SnippetsLab Assistant is disabled, because there is no easy way to activate the app when both are hidden.

Important

When the Dock icon is hidden, the standard main menu for SnippetsLab is also disabled. This is a technical limitation and cannot be circumvented at this time. You can instead access common features like Import, Export and Preferences using the gearshape.fill button in the bottom.

I am planning to switch from the Mac App Store version to Setapp (or the opposite). How do I migrate my library?

The Mac App Store build and Setapp build use different iCloud storage locations, therefore data from one app will not sync to the other automatically. The best way is to export a copy of the library in SnippetsLab Library format, and import it back to the new app.

How do I import data from an external app or format?

Out of the box, SnippetsLab supports import from Quiver and CodeBox. However, from version 2.1, the app can also import from any JSON file that conforms to the supported format. This means data from arbitrary sources can be imported as long as they can be converted to the required JSON format first.

For more details about JSON importing, see JSON Import Format Specification.

Is there any organizational, student, or volume discount?

SnippetsLab participates in Apple’s educational volume pricing program, offering 50% discount to educational institutions when they purchase 20 or more copies of the app through Apple School Manager.

Unfortunately, we’re not able to offer discounts for individual purchases at this time.

My company policy does not allow signing into the App Store. Is there a way to download SnippetsLab directly?

Currently, SnippetsLab is only distributed through the Mac App Store and Setapp. Due to technical reasons, we cannot provide a separate download (e.g. dmg or app) directly.

How can I request a refund?

Apple handles all global transactions on the Mac App Store, including purchases and refunds. The best way to request a refund is through Apple. We do not have access to any individual payment or financial records due to privacy concerns and industry regulations. As a result, we are unfortunately unable to issue refunds directly.

For more details on requesting a refund, please refer to Apple Help Topic HT204084.