Fix code fence syntax highlighting.

This commit is contained in:
Mahlon E. Smith 2025-06-28 18:19:07 -07:00
parent fdb32f2dfd
commit 166d8d4ca5
Signed by: mahlon
SSH key fingerprint: SHA256:QqLyWlHOO+0nAIxmOo2xwdr7NcV9/plk4lhsihezvWo
2 changed files with 5 additions and 14 deletions

View file

@ -1,5 +0,0 @@
syntax: glob
.cache
stomp
src/stomp
*.html

View file

@ -70,8 +70,7 @@ by adding specific headers. You can also add "x-headers" that are carried betwe
Another use is to issue "receipts" on sends or subscriptions, to ensure the broker has Another use is to issue "receipts" on sends or subscriptions, to ensure the broker has
processed your request. Here's an example of how to perform receipt processing: processed your request. Here's an example of how to perform receipt processing:
``` ```nim
#!nimrod
proc accept_receipt( c: StompClient, r: StompResponse ) = proc accept_receipt( c: StompClient, r: StompResponse ) =
var receipt = r[ "receipt-id" ] var receipt = r[ "receipt-id" ]
# ... match this receipt up to the request that generated it # ... match this receipt up to the request that generated it
@ -99,8 +98,7 @@ With one open transaction, messages are automatically attached to it.
If you have multiple open transactions, you'll need to add which one If you have multiple open transactions, you'll need to add which one
you want a message to be part of via the custom headers. you want a message to be part of via the custom headers.
``` ```nim
#!nimrod
# Single transaction # Single transaction
# #
client.begin( "trans-1" ) client.begin( "trans-1" )
@ -148,8 +146,7 @@ This is a complete client that does the following:
with JSON results to the **user.created** key -- presumably to be picked up by another with JSON results to the **user.created** key -- presumably to be picked up by another
process elsewhere. process elsewhere.
``` ```nim
#!nimrod
# (This should be compiled with -d:ssl) # (This should be compiled with -d:ssl)
import import
@ -209,4 +206,3 @@ client.subscribe( "/exchange/events/user.create", "client-individual" )
# Enter message loop. # Enter message loop.
client.wait_for_messages client.wait_for_messages
``` ```