From d15ef9f1a35d32a68dfa47b46218f0452f8b15a5 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Tue, 15 Aug 2017 13:54:00 -0400 Subject: [PATCH] Fix highlighting --- docs/_functions/domain/IMPORT_TRANSFORM.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/_functions/domain/IMPORT_TRANSFORM.md b/docs/_functions/domain/IMPORT_TRANSFORM.md index 701b9c706..dbd573397 100644 --- a/docs/_functions/domain/IMPORT_TRANSFORM.md +++ b/docs/_functions/domain/IMPORT_TRANSFORM.md @@ -26,6 +26,7 @@ be very error prone. Therefore instead you maintain foo.com and let IMPORT_TRANSFORM automatically generate bar.com. {% include startExample.html %} +{% highlight html %} foo.com: one.foo.com. IN A 1.2.3.1 @@ -40,11 +41,13 @@ bar.com: three.foo.com.bar.com. IN A 123.123.123.113 four.foo.com.bar.com. IN A 123.123.123.114 +{%endhighlight%} {% include endExample.html %} Here's how you'd implement this in DNSControl: {% include startExample.html %} +{% highlight js %} var TRANSFORM_INT = [ // RANGE_START, RANGE_END, NEW_BASE @@ -64,6 +67,7 @@ D("bar.com", .... , IMPORT_TRANSFORM(TRANSFORM_INT, 'foo.com', 300), ); +{%endhighlight%} {% include endExample.html %} Transform rules are: RANGE_START, RANGE_END, NEW_BASE. NEW_BASE may be: