[Pkg-javascript-commits] [leaflet-markercluster] 06/479: Syntax coloring for readme examples :)

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:02 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 5f878131367d5bfc8bc10a74a43b6ef8af28f35d
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Thu Jul 12 00:15:35 2012 +0300

    Syntax coloring for readme examples :)
---
 README.md | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 58a5aca..e3c1781 100644
--- a/README.md
+++ b/README.md
@@ -7,11 +7,12 @@ Provides Marker Clustering functionality for Leaflet
 See the included example for usage.
 
 Create a new MarkerClusterGroup, add your markers to it, then add it to the map
-````
+
+```javascript
 var markers = new L.MarkerClusterGroup();
 markers.addLayer(new L.Marker(getRandomLatLng(map)));
 map.addLayer(markers);
-````
+```
 
 For a more complete example see example/marker-clustering.html
 
@@ -19,10 +20,10 @@ For a more complete example see example/marker-clustering.html
 As an option to MarkerClusterGroup you can provide your own function for creating the Icon for the clustered markers.
 The default implementation changes color at bounds of 10 and 100, but more advanced uses may require customising this.
 
-````
+```javascript
 var markers = new L.MarkerClusterGroup({ options: {
 	iconCreateFunction: function(childCount) {
 		return new L.DivIcon({ html: '<b>' + childCount + '</b>' });
 	}
 }});
-````
\ No newline at end of file
+```
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list