Skip to content

Commit 9f37c74

Browse files
authored
fix csharp highlighting (#12321)
1 parent 130b94b commit 9f37c74

File tree

1 file changed

+3
-3
lines changed
  • docs/platforms/dotnet/common/migration

1 file changed

+3
-3
lines changed

docs/platforms/dotnet/common/migration/index.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ The format of the stack traces were greatly improved with the help of Ben Adam's
171171

172172
However, this will **affect grouping**. If you prefer to stay with the original stack trace format, you can opt-out of this feature with:
173173

174-
```
174+
```csharp
175175
options.StackTraceMode = StackTraceMode.Original;
176176
```
177177

@@ -199,7 +199,7 @@ Setting an instance of `Exception` that was caught in a `catch` block could fail
199199

200200
To avoid this issue, pass a serializable object into Sentry. For example, map the instance of `Exception` to an anonymous object:
201201

202-
```
202+
```csharp
203203
try
204204
{
205205
throw new ArgumentNullException("test");
@@ -229,7 +229,7 @@ ASP.NET (**not Core**) users need to install an additional package, `Sentry.AspN
229229

230230
You can plug the package into the `Init` as follows:
231231

232-
```
232+
```csharp
233233
options.AddAspNet();
234234
```
235235

0 commit comments

Comments
 (0)