Skip to content

Commit 949c1eb

Browse files
authored
Merge pull request #12961 from AndrewCook/patch-1
Javascript syntax highlighting
2 parents 01473a9 + 1c7f039 commit 949c1eb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/cosmos-db/programming.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ client.replaceDocumentAsync(docToReplace.self,
390390
Post-triggers, like pre-triggers, are associated with an operation on a document and don’t take any input parameters. They run **after** the operation has completed, and have access to the response message that is sent to the client.
391391

392392
The following example shows post-triggers in action:
393-
```
393+
```javascript
394394
var updateMetadataTrigger = {
395395
id: "updateMetadata",
396396
serverScript: function updateMetadata() {
@@ -430,7 +430,7 @@ var updateMetadataTrigger = {
430430

431431
```
432432
The trigger can be registered as shown in the following sample.
433-
```
433+
```javascript
434434
// register post-trigger
435435
client.createTriggerAsync('dbs/testdb/colls/testColl', updateMetadataTrigger)
436436
.then(function(createdTrigger) {
@@ -840,4 +840,3 @@ You may also find the following references and resources useful in your path to
840840
* [Secure and Portable Database Extensibility](http://dl.acm.org/citation.cfm?id=276339)
841841
* [Service Oriented Database Architecture](http://dl.acm.org/citation.cfm?id=1066267&coll=Portal&dl=GUIDE)
842842
* [Hosting the .NET Runtime in Microsoft SQL server](http://dl.acm.org/citation.cfm?id=1007669)
843-

0 commit comments

Comments
 (0)