dotnet / dotnet/AspNetCore.Docs

all the changes in the code aren't highlighted.

Open
#24,642 3 comments 0 reactions 1 assignee Claimed by @wadepickett View on GitHub
Source - Docs.ms
Dominant language
C#
Stars
13.1k
Forks
24.6k
Avg merge
1d 3h
Merged PRs (30d)
97

Description

The code provided in the docs is not highlighting all the changes that were made in the context after adding the `genre` search in the `Index.cshtml` file.

![Screenshot from 2022-01-17 23-34-49](https://user-images.githubusercontent.com/76873719/149819312-d36224b6-f684-475f-af1c-c00c218686bd.png)

The foreach loop was changed as the model changed but is not highlighted, so when following along the tutorial I was stuck finding what did I do wrong, since I only changed the highlighted lines in the files (like anyone else following along would do).

I think that line should be highlighted for the convenience of the reader 😁.

The code block in the markdown docs is on line [273](https://github.com/dotnet/AspNetCore.Docs/blob/510a9ab6a82c1057db053a9c6452460ae10ff4a0/aspnetcore/tutorials/first-mvc-app/search.md?plain=1#L273) that points to [IndexFormGenreNoRating.cshtml](https://github.com/dotnet/AspNetCore.Docs/blob/510a9ab6a82c1057db053a9c6452460ae10ff4a0/aspnetcore/tutorials/first-mvc-app/start-mvc/sample/MvcMovie22/Views/Movies/IndexFormGenreNoRating.cshtml) file and in the query parameter it says to highlight that particular line(i.e [line 43](https://github.com/dotnet/AspNetCore.Docs/blob/510a9ab6a82c1057db053a9c6452460ae10ff4a0/aspnetcore/tutorials/first-mvc-app/start-mvc/sample/MvcMovie22/Views/Movies/IndexFormGenreNoRating.cshtml#L43)) but as in the screenshot that I shared it doesn't seem to work.

**OS Information**
```
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
```

**Browser Information**
Firefox Browser `96.0 (64-bit)`

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f9b9859c-b83c-5fc3-41d5-15531232185f
* Version Independent ID: 5438de31-8562-3747-d1a5-2a4622252fc1
* Content: [Part 7, add search to an ASP.NET Core MVC app](https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/search?view=aspnetcore-6.0)
* Content Source: [aspnetcore/tutorials/first-mvc-app/search.md](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/first-mvc-app/search.md)
* Product: **aspnet-core**
* Technology: **aspnetcore-tutorials**
* GitHub Login: @Rick-Anderson
* Microsoft Alias: **riande**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.