mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-26 05:26:27 +00:00 
			
		
		
		
	Make the example show highlighted areas more explicitly
This commit is contained in:
		| @@ -217,7 +217,11 @@ fn display_highlights(text: &str, ranges: &[usize]) -> io::Result<()> { | ||||
|             _ => unreachable!(), | ||||
|         }; | ||||
|         if highlighted { | ||||
|             stdout.set_color(ColorSpec::new().set_fg(Some(Color::Yellow)))?; | ||||
|             stdout.set_color( | ||||
|                 ColorSpec::new() | ||||
|                     .set_fg(Some(Color::Yellow)) | ||||
|                     .set_underline(true), | ||||
|             )?; | ||||
|         } | ||||
|         write!(&mut stdout, "{}", &text[start..end])?; | ||||
|         stdout.reset()?; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user