


The three prototypes have similar markup settings: in the Markup tab, all the boxes are left empty, as WordPress doesn’t use paragraph markup. That is set to 1 for Snippet, so that the body text isn’t shown on the tiles in the Map view, and 0 for Section, so that body text is shown on the containers. The only key attribute is $MapBodyTextSize.
#Tinderbox eastgate markdown code
My own prototypes are very simple at this stage: Snippet for notes containing code snippets, and Section for the containers in which to place those notes. This creates two new containers, for Prototypes and Templates, and populates them with the notes needed for plain HTML export, which I need to edit. With a new Tinderbox document, I start by by adding the built-in templates for HTML, in the File menu. In Tinderbox, I need to create a couple of prototypes for my code snippets and their containers, and to customise the HTML export template to generate WordPress ‘markdown’. When I want to refresh an article in this blog with new and updated code snippets, I use Tinderbox’s export to HTML feature to generate WordPress ‘markdown’ to drop into MarsEdit, my preferred offline editor, or even straight into the WordPress online editor in HTML mode. I open the note, select the code, copy, and paste into my source in Xcode.Īlthough it might be nice to be better integrated with Xcode, this works fine, and Xcode quickly formats and displays the added code.
#Tinderbox eastgate markdown how to
When I’m writing code and cannot remember, say, how to eliminate duplicates from an array, I look in the appropriate container, or use the Find command if I’m unsure where it will be. Those notes are kept in topic-based containers, such as one for strings, another for alerts, and so on. The plan is simple and natural: each code snippet, ranging from one-liners up to complete functions, is kept in a separate note, with as little or as much supporting text as is needed. The best and most versatile tool for this type of task is Tinderbox. I have a couple of code editors which help you keep code snippets, but they aren’t designed to export them to this blog. I started to collect these on pages in this blog, but they have since fallen a bit by the wayside. Having spent quite a lot of the time since then working in Swift in Apple’s Xcode development environment, I now want to use Tinderbox to go the other way.Įven when you write code every day, it’s hard to remember all the neat tricks and solutions which you come across or devise. A few weeks ago, I was lamenting the fate of blog posts and using Tinderbox to create a less transient Mac troubleshooting reference.
