Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: formatting for code snippets

Paul Copplestone31aa8c0cc028
diff --git a/web/docs/client/subscribe.mdx b/web/docs/client/subscribe.mdx
index ee2db72f550..8f18f321842 100644
--- a/web/docs/client/subscribe.mdx
+++ b/web/docs/client/subscribe.mdx
@@ -205,7 +205,11 @@ const mySubscription = supabase
### Listening to updates
By default Supabase will send only the updated record. If you want to receive the previous values as well you can
-enable full replication for the table you are listening too: `alter table "your_table" replica identity full;`
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
<Tabs
@@ -240,7 +244,11 @@ const mySubscription = supabase
### Listening to deletes
By default Supabase not send deleted records. If you want to receive the deleted record you can
-enable full replication for the table you are listening too: `alter table "your_table" replica identity full;`
+enable full replication for the table you are listening too:
+
+```sql
+alter table "your_table" replica identity full;
+```
<Tabs
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index 08e9d32cf89..0036bcb41f1 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -715,7 +715,11 @@ pages:
- name: Listening to updates
description: |
By default Supabase will send only the updated record. If you want to receive the previous values as well you can
- enable full replication for the table you are listening too: `alter table "your_table" replica identity full;`
+ enable full replication for the table you are listening too:
+
+ ```sql
+ alter table "your_table" replica identity full;
+ ```
js: |
```js
const mySubscription = supabase
@@ -732,7 +736,11 @@ pages:
- name: Listening to deletes
description: |
By default Supabase not send deleted records. If you want to receive the deleted record you can
- enable full replication for the table you are listening too: `alter table "your_table" replica identity full;`
+ enable full replication for the table you are listening too:
+
+ ```sql
+ alter table "your_table" replica identity full;
+ ```
js: |
```js
const mySubscription = supabase