# Compare multiple documents with specific compare settings Following this guide you will learn how to compare multiple documents with different customizations - style detection, change comparison detalization level and more. {{< alert style="info" >}}This feature available for Microsoft Word documents, Microsoft PowerPoint, and Open Document presentations only.{{< /alert >}} [GroupDocs.Comparison](https://products.groupdocs.com/comparison/java) allows you to compare more than two documents and specify specific comparison options like styling for detected changes, comparison detalization level, etc. To compare multiple documents using the specific options, follow these steps: 1. Instantiate the [Comparer](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer) object. Specify the source document path or stream. 2. Call the [add()](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer/#add-java.lang.String-) method and specify the target document path or stream. Repeat this step for every target document. 3. Instantiate the [CompareOptions](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions) object and specify the appropriate options. 4. Call the [compare](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison/comparer/#compare-java.lang.String-com.groupdocs.comparison.options.CompareOptions-) method. Specify the pass [CompareOptions](https://reference.groupdocs.com/comparison/java/com.groupdocs.comparison.options/compareoptions) object from the previous step. The following code snippets show how to compare multiple documents with the appropriate options: ## Compare multiple documents with specific compare settings from local disk {{< tabs "example1">}} {{< tab "Java" >}} ```java import com.groupdocs.comparison.Comparer; import com.groupdocs.comparison.options.CompareOptions; import com.groupdocs.comparison.options.style.StyleSettings; import java.awt.*; import java.nio.file.Path; // ... try (Comparer comparer = new Comparer("source.docx")) { comparer.add("target.docx"); comparer.add("target2.docx"); comparer.add("target3.docx"); final StyleSettings styleSettings = new StyleSettings(); styleSettings.setFontColor(Color.YELLOW); CompareOptions compareOptions = new CompareOptions(); compareOptions.setInsertedItemStyle(styleSettings); final Path resultPath = comparer.compare("result.docx", compareOptions); } ``` {{< /tab >}} {{< /tabs >}} The result is as follows: ![](https://docs.groupdocs.com/comparison/java/images/compare-multiple-settings.png) ## Compare multiple documents with specific compare settings from stream {{< tabs "example2">}} {{< tab "Java" >}} ```java import com.groupdocs.comparison.Comparer; import com.groupdocs.comparison.options.CompareOptions; import com.groupdocs.comparison.options.style.StyleSettings; import java.awt.*; import java.nio.file.Path; import java.io.FileInputStream; import java.io.InputStream; // ... try (Comparer comparer = new Comparer(sourceInputStream)) { comparer.add(targetInputStream1); comparer.add(targetInputStream2); comparer.add(targetInputStream3); final StyleSettings styleSettings = new StyleSettings(); styleSettings.setFontColor(Color.YELLOW); CompareOptions compareOptions = new CompareOptions(); compareOptions.setInsertedItemStyle(styleSettings); final Path resultPath = comparer.compare(resultInputStream, compareOptions); } ``` {{< /tab >}} {{< /tabs >}}