\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{WildRyc} \pdfinfo{ /Title (cst8285.pdf) /Creator (Cheatography) /Author (WildRyc) /Subject (CST8285 Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{CST8285 Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{WildRyc} via \textcolor{DarkBackground}{\uline{cheatography.com/171551/cs/36006/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}WildRyc \\ \uline{cheatography.com/wildryc} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 10th December, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{2.28942 cm} x{2.68758 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{GIT commands}} \tn % Row 0 \SetRowColor{LightBackground} `git init` & initialize an existing directory \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `git clone {[}url{]}` & retrieve an entire repository \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `git status` & show modified files in working directory \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `git add {[}file{]}` & add a file as it looks now to your next commit \tn % Row Count 9 (+ 3) % Row 4 \SetRowColor{LightBackground} `git reset {[}file{]}` & unstage af ile while retaining the changs in working directory \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} `git diff` & diff of what is changed but not staged \tn % Row Count 14 (+ 2) % Row 6 \SetRowColor{LightBackground} `git commit -m "{[}commit message{]}"` & commit your staged content as a new commit snapshot \tn % Row Count 17 (+ 3) % Row 7 \SetRowColor{white} `git branch` & list your branches, current has a * \tn % Row Count 19 (+ 2) % Row 8 \SetRowColor{LightBackground} `git branch {[}branch name{]}` & create a new branch at the current commit \tn % Row Count 21 (+ 2) % Row 9 \SetRowColor{white} `git checkout` & switch to another branch \tn % Row Count 23 (+ 2) % Row 10 \SetRowColor{LightBackground} `git merge {[}branch name{]}` & merge the specified branch into current one \tn % Row Count 26 (+ 3) % Row 11 \SetRowColor{white} `git log` & show all commits \tn % Row Count 27 (+ 1) % Row 12 \SetRowColor{LightBackground} `git push` & transmit local branch commits to remote repo \tn % Row Count 30 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.28942 cm} x{2.68758 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{GIT commands (cont)}} \tn % Row 13 \SetRowColor{LightBackground} `git pull` & fetch and merge any commits from the remote repo \tn % Row Count 3 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.39356 cm} x{3.58344 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Regex}} \tn % Row 0 \SetRowColor{LightBackground} \textasciicircum{} or \textbackslash{}A & Start of string \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \$ or \textbackslash{}Z & end of string \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textbackslash{}b & word boundary \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textbackslash{}B & Not word boundary \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \textbackslash{}s & white space \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \textbackslash{}S & not white space \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} ?= & look ahead \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} ?! & negative lookahead \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} * & 0 or more \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} + & 1 or more \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} ? & 0 or 1 \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} \{3\} & exactly 3 \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} \{3,\} & 3 or more \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} \{3,5\} & 3, 4, or 5 \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} {[}a-z{]} & lowercase a - z \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} {[}A-Z{]} & uppercase A-Z \tn % Row Count 16 (+ 1) % Row 16 \SetRowColor{LightBackground} {[}\textasciicircum{}abc{]} & not (a or b or c) \tn % Row Count 17 (+ 1) % Row 17 \SetRowColor{white} {[}0-7{]} & digits from 0 to 7 \tn % Row Count 18 (+ 1) % Row 18 \SetRowColor{LightBackground} (a|C) & a or C \tn % Row Count 19 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{4.13091 cm} x{0.84609 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{JavaScript String Objects}} \tn % Row 0 \SetRowColor{LightBackground} length & \seqsplit{property} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} charAt(n) & \seqsplit{method} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} charCodeAt(n) & \seqsplit{method} \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} l`et a = "10"; let b = 20; console.log(a + b)` & 1020 \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} `let a = "10"; let b = 20; console.log(+a + b)` & 30 \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} `let a = "10"; let b = 20; console.log(a - b)` & -10 \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} `let a = "10"; let b = 20; console.log(a * b)` & 200 \tn % Row Count 12 (+ 2) % Row 7 \SetRowColor{white} l`et a = "CST8285"; let b = 20; console.log(a - b)` & NaN \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHP - database connection}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{MYSQLi connection} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\$dbc = mysqli\_connect(\$host, \$user, \$pw, \$db);`} \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Query} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`\$result = mysqli\_query(\$dbc, \$query);`} \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Close} \tn \mymulticolumn{1}{x{5.377cm}}{\hspace*{6 px}\rule{2px}{6px}\hspace*{6 px}`mysqli\_close(\$dbc);`} \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.34379 cm} x{3.63321 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{JavaScript Math Objects}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{`Math.round(x)`} & x to nearest integer \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{`Math.pow(x},y)` & x to the power of y \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{`Math.sqrt(x)`} & square root of x \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{`Math.abs(x)`} & absolute |x| \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} \seqsplit{`Math.random()`} & random number between 0 (inclusive) to 1(exclusive) \tn % Row Count 10 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{JavaScript Arrays}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{`array.sort(function(a,b)\{return a-b\})`} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{`array.sort((a,b) =\textgreater{}\{a-b\})`} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} `a-b = {\bf{positive}}` & b sorted before value a \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} `a-b = {\bf{negative}}` & a sorted before value b \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} `a-b = 0` & items stay inthe same spot \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{\seqsplit{`array.filter(function(element)} \{return (comparison)\}`} \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{`array.filter((element) =\textgreater{} \{return (comparison)\};`} \tn % Row Count 11 (+ 1) % Row 7 \SetRowColor{white} `array.map((item)=\textgreater{}array.key);` & new array containing only items with key \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} `array.push(value)` & add value to end of array \tn % Row Count 15 (+ 2) % Row 9 \SetRowColor{white} `array.pop()` & remove value at end of array, returning value \tn % Row Count 18 (+ 3) % Row 10 \SetRowColor{LightBackground} \seqsplit{`array.unshift(value)`} & add value at start of array \tn % Row Count 20 (+ 2) % Row 11 \SetRowColor{white} `array.shift()` & remove value at start of array, returning value \tn % Row Count 23 (+ 3) % Row 12 \SetRowColor{LightBackground} \seqsplit{`array.splice(startingIndex}, \seqsplit{totalElementsToDelete}, valuesToAdd)` & add or remove elements anywhere in the array and returns deleted elements if any \tn % Row Count 27 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{PHP functions}} \tn % Row 0 \SetRowColor{LightBackground} `isset()` & test if variable exists \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} `empty()` & tests for empty variable \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \seqsplit{`mysqli\_fetch\_array(\$result)`} & fetch each row of query \$result \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `exit()` & end script immediately \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `trim(\$string)` & remove leading and trailing whitespace \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} `file(\$fn)` & read contents of \$fn, returns array of strings \tn % Row Count 13 (+ 3) % Row 6 \SetRowColor{LightBackground} \seqsplit{`file\_get\_contents(\$fn)`} & returns single string \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} \seqsplit{`file\_put\_contents(\$fn}, data, mode)` & write content from data to \$fn, using mode) \tn % Row Count 18 (+ 3) % Row 8 \SetRowColor{LightBackground} \seqsplit{`file\_exists(\$fn)`} & checks if \$fn exists \tn % Row Count 19 (+ 1) % Row 9 \SetRowColor{white} `scandir(\$path)` & returns array of lists of files and directories if \$path is valid, else false \tn % Row Count 23 (+ 4) % Row 10 \SetRowColor{LightBackground} `glob()` & returns array of all file names that match pattern, with path \tn % Row Count 26 (+ 3) % Row 11 \SetRowColor{white} `getcwd()` & returns string of current working dir \tn % Row Count 28 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Cookies \& Session}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Cookies \newline % Row Count 1 (+ 1) - limited in size by browser \newline % Row Count 2 (+ 1) - stored client-side \newline % Row Count 3 (+ 1) - can be disabled \newline % Row Count 4 (+ 1) Sessions \newline % Row Count 5 (+ 1) - limited by server space \newline % Row Count 6 (+ 1) - stored server-side \newline % Row Count 7 (+ 1) - expire when browser closed \newline % Row Count 8 (+ 1) - cannot be modified by users% Row Count 9 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.23965 cm} x{2.73735 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{PHP Session Commands}} \tn % Row 0 \SetRowColor{LightBackground} `session\_start()` & start a session \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} `\$\_SESSION{[}"variableName"{]}` & store session variable \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} `unset(\$\_SESSION{[}"variableName"{]}` & remove session variable \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \seqsplit{`session\_destroy()`} & destroy session and all session variables \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{JSON}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{easy to parse and generate} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{can contain both object and array structures} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{contain key and value pairs} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{keys are always strings} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{values can be string, number, Boolean, null, object, or array} \tn % Row Count 6 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{HAS no version, very stable, strictly in UNICODE} \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Example object: \$json = ' \{ "Name": "Alex", "Age": 37, "Admin": true \} ' ;} \tn % Row Count 9 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.43873 cm} x{2.53827 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{JSON in PHP}} \tn % Row 0 \SetRowColor{LightBackground} `json\_encode()` & convert PHP array to JSON array \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{`JSON\_FORCE\_OBJECT`} & changes above to reult in indexed array \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} `json\_decode( \$json, true))` & JSON string to PHP array \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} `json\_decode( \$json, false) (default)` & JSON string to PHP object \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} `JSON.stringify()` & take JS object and produce JSON string \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} `JSON.parse()` & take JSON string and produce JS object \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.44333 cm} x{3.53367 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{PHP Error Reporting}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{error\_reporting} & types of errors reported \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \seqsplit{display\_errors} & whether messages displayed in browser \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} log\_errors & on server or somewhere else \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.46464 cm} x{1.55618 cm} x{1.55618 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{var | let | const}} \tn % Row 0 \SetRowColor{LightBackground} VAR & LET & CONST \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \seqsplit{function-scoped} & block-scoped & block-scoped \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} updatable & updatable & not updatable \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} \seqsplit{redeclarable} & not redeclarable & not redeclarable \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} hoisted null & not hoisted & \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}