Highlight some parts of text file

Hello,I have a text file and I want to highlight some parts of it using matlab codes.But i do not have any idea how to do it. Can anyone help me?thanks

4 Comments

You cannot highlight a part of the text file in general, but this depends on where you display the text. It matters if you open it in MS Word, an internet browser Matlab's editor, the command window or in a uicontrol.
Hi Jan Simon, I am new to matlab and still in learning stage. Can you please provide your thoughts for the below: We have two versions of same requirement MS word document with some changes and the original document has some text formatting (Font Color and Text Highlight Color). How to apply the same formatting from original version to new version for the text which is matching in two versions. I tried using 'word = actxserver('Word.Application')' to control word from MATLAB, but not able to find exact syntax to achieve the above task. Can anyone please help how to code this? Thank you.
@Praveen: This is a new question. Please do not hijack Fateme Jalali's thread by inserting new questions in the section for comments, but open an own thread instead. Otherwise the readers have to guess to which question an answer belongs to.
Praveen
Praveen on 9 Mar 2018
Edited: Walter Roberson on 9 Mar 2018
Hi Jan Simon,
I am really Sorry for that and will not repeat again. Added new thread:
Thank you for responding.

Sign in to comment.

Answers (0)

Categories

Find more on Functions in Help Center and File Exchange

Tags

Asked:

on 7 Feb 2016

Edited:

on 9 Mar 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!