mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-16 05:25:11 +00:00
Add XML code block formatting to usage examples
Wrapped <replace_in_file> usage examples in XML code blocks for improved readability and clarity in the documentation.
This commit is contained in:
parent
2f185d919c
commit
7d0f9b6275
@ -264,12 +264,14 @@ Parameters:
|
||||
* To delete code: Use empty REPLACE section
|
||||
5. IMPORTANT: There must be EXACTLY ONE ======= separator between <<<<<<< SEARCH and >>>>>>> REPLACE
|
||||
Usage:
|
||||
```xml
|
||||
<replace_in_file>
|
||||
<path>File path here</path>
|
||||
<diff>
|
||||
Search and replace blocks here
|
||||
</diff>
|
||||
</replace_in_file>
|
||||
```
|
||||
|
||||
## preview_markdown
|
||||
Description: Request to preview a Markdown file by converting it to HTML and opening it in the default web browser. This tool is useful for reviewing the rendered output of Markdown files.
|
||||
@ -373,6 +375,7 @@ Usage:
|
||||
|
||||
## Example 3: Requesting to make targeted edits to a file
|
||||
|
||||
```xml
|
||||
<replace_in_file>
|
||||
<path>src/components/App.tsx</path>
|
||||
<diff>
|
||||
@ -405,6 +408,7 @@ return (
|
||||
>>>>>>> REPLACE
|
||||
</diff>
|
||||
</replace_in_file>
|
||||
```
|
||||
|
||||
## Example 4: Requesting to use an MCP tool
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user