Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Transferring a color scheme between MATLAB installations
--------------------------------------------------------

If you are using a personalised color scheme in MATLAB, you may wish to save
it for yourself so you can re-implement it easily if you reintall MATLAB.
it for yourself so you can re-implement it easily if you reinstall MATLAB.
Or you may wish to transfer your personalised color scheme from one machine
to another. This section describes the steps relevant in either scenario.

Expand Down Expand Up @@ -115,12 +115,12 @@ refer to the annotated screenshot,

The values for each colour in the .prf stylesheet must be recorded as single
RGB integers, with each colour channel in 8-bit (0-255), R as big endian,
and a opaque alpha channel. Because the format for RGB colours in Java allows
and an opaque alpha channel. Because the format for RGB colours in Java allows
for an alpha channel and the integers are signed, all the colours you record
in your .prf file should be negative, spanning the range
`-16777216` (black, `[0,0,0]`) to `-1` (white, `[255,255,255]`).

The text file for your pre-existing theme will typically specify its colous in
The text file for your pre-existing theme will typically specify its colours in
hexadecimal format, or in terms of R, G, B values. You will need
to convert the colours from this format into the format which MATLAB preference
files use to specify colours instead.
Expand All @@ -132,7 +132,7 @@ details.

### Setting colours for additional languages

MATLAB supports syntax highlighting for several languanges in addition to its own.
MATLAB supports syntax highlighting for several languages in addition to its own.
Currently these languages are
MuPAD, TLC, VRML, C/C++, Java, VHDL, Verilog, and XML/HTML.
The colours used for the syntax highlighting of all these languages can be set
Expand Down Expand Up @@ -164,7 +164,7 @@ do the following.
3. Load the colorscheme with `schemer_import('tmp.prf')`, which overwrites the
syntax for the additional languages with automatically inferred colours.
4. Open up the panel Preferences > Editor/Debugger > Languages and inspect the
quality of the colorscheme in the addition languages.
quality of the colorscheme in the additional languages.
5. Fix or improve any perceived issues with the colorscheme in the Languages panel.
6. Export the colorscheme again, but this time with `schemer_export(3)` to include
the customised colours for the additional languages.
Expand All @@ -173,7 +173,7 @@ do the following.
### Adding your scheme to this package

If you are particularly proud of your new color scheme (and why wouldn't you be)
and would like to to share it with the world as part of the `matlab-schemer`
and would like to share it with the world as part of the `matlab-schemer`
package, this is possible!

Please head over to our daughter repository, [matlab-schemes][], which holds the
Expand Down
6 changes: 3 additions & 3 deletions schemer_export.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
% because users loading your exported color scheme may want syntax
% options highlighted which you are not currently using. Consequently,
% when designing a color scheme, it is advisable to set colours for all
% possisble MATLAB colour settings, even if you don't usually use them.
% possible MATLAB colour settings, even if you don't usually use them.
% By default, SCHEMER_IMPORT will not import boolean settings, so users
% will keep their syntax options enabled or disabled as they prefer even
% after importing your color scheme.
Expand Down Expand Up @@ -76,7 +76,7 @@
% IMPORTANT NOTE:
% You must have, at any point since installing MATLAB, visited the
% Color, Color>Programming Tools and Editor/Debugger>Display panes of
% the Preferences diaglogue within MATLAB and then clicked OK in order
% the Preferences dialogue within MATLAB and then clicked OK in order
% for all the settings to be exported correctly. You will obviously have
% done this for any settings you have changed but, for example, you may
% have left the Editor/Debugger>Display settings unchanged. If this
Expand Down Expand Up @@ -674,4 +674,4 @@
% Turn this into an integer colour value
colors(iName) = prefs{iName}.getRGB;
end
end
end
2 changes: 1 addition & 1 deletion schemes/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ prompt.

Or
- in MATLAB GUI, undock the Editor panel
- move tabs to bottom, if more than one file is being editted
- move tabs to bottom, if more than one file is being edited

Also, make sure the MATLAB toolstrip is visible on the undocked panel.
If it is minimised, right-click on the toolstrip and restore it.
Expand Down