# Marking Scripts and JSON Files

You can dynamically change the Fiddler Everywhere user interface based on your preferences. You can highlight matched sessions through the **Mark Sessions** action and set their background and text color. For example, you can highlight all sessions that are returning JavaScript or JSON files.

## Creating a "Mark Scripts and JSONs" Rule

Create a "Mark Scripts and JSONs" rule by setting the following actions through the [Rules Builder](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/modify-traffic-with-rules).

1. Create a matching condition that uses the "When **all these conditions** are met **any number of times**" pattern.
2. Match by a **Response Header** where the header `Content-Type` matches the regular expression: `javascript|json`.
3. Match by **Method** of type `GET`.
4. Create a **Mark Session** action and set the preferred background and foreground (text) colors.

This sample Fiddler rule highlights all sessions where the `Content-Type` header matches the specified values.

![Creating "Mark Scripts and JSONs" rule](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/assets/42d07a0acb0f9cb0fc475358da7c7b03/mark-scripts-and-jsons.png)

Once the rule is created, enable the **Rules** tab, toggle the rule switch, and start capturing traffic.

![Activating the "Mark Scripts and JSONs" rule](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/assets/66c02f454afd8d0f0f78613026030a46/mark-scripts-and-jsons-active.png)

> tip You can create the rule and then use the **Play** button to immediately apply the new UI effect to all captured sessions in the **Live Traffic** grid.

Download a ready-to-use <a href="https://github.com/telerik/fiddler-everywhere/tree/master/rules/mark-scripts-and-jsons" target="_blank">"Mark Scripts and JSONs"</a> rule as a FARX file, which you can import through the Rules toolbar.

## See Also

* [Learn more about the Rules functionality in Fiddler Everywhere here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/modify-traffic-with-rules)
* [Learn more about all rules presets in Fiddler Everywhere here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/rules-presets)
* [Learn more on how to organize your rules here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/organizing-rules)
* [Learn more about the matching conditions here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#conditions)
* [Learn more about the supported actions here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#actions)
* [Learn more about final and non-final rules here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/conditions-and-actions#final-and-non-final-actions)
* [Learn more about using breakpoints here...](https://www.telerik.com/fiddler/fiddler-everywhere/documentation/modify-and-filter-traffic/breakpoints)
