The curly brackets of ultraedit are not aligned. The solution is as follows:
[Advanced] ---, [configuration] ----, [Editor display] ---, [syntax coloring] ---- select C/C ++ as the language, and click Open
Find indent strings, as shown below
/Indent strings = "{" "if" "else "":"
/Unindent strings = "}"
Remove {If else}, but do not remove the double quotation marks, as shown below:
/Indent strings = """"""""
/Unindent strings = ""
**************************************** ****************************************
Ultraedit recognizes. PC files, and ultraedit recognizes file syntaxes with other suffixes for color highlighting and automatic alignment
For example, to identify a file with a suffix of. PC, use the following method:
[Advanced] ---, [configuration] ----, [Editor display] ---, [syntax coloring] ---- select C/C ++ as the language, and click open, the first line shows file extensions = c cpp cc cxx h hpp. Add the file suffix PC to be recognized.
/L1 "C/C ++" c_lang line comment = // block comment on =/* block Comment off = */escape char = \ string chars = "'file extensions = C cpp cc cxx h hpp awk PC
**************************************** ****************************************
Add ultraedit to the right-click menu
1. Assume that ultraedit is installed in "C: \ Program Files \ ultraedit ".
2. Click Start> Run. In the dialog box that appears, enter regedit and press enter to open the Registry Editor. Locate hkey_classes_root \ * \ shell.
3. add an item named "ultraedit" here, create an item under this item, name it "Command", and then change the value on the right to "C: \ Program Files \ ultraedit \ uedit32.exe % 1 ".