I´m having some trouble working with Winedt 8 and 9 and VerbatimPlus add-on. Here is my MWE.
File "main.tex"
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc} % Codificação da entrada
\usepackage{lmodern} % Fonte Latin Modern
\usepackage[T1]{fontenc} % Codificação da Saída
\usepackage[brazil]{babel} % Português Brasil
\usepackage{listings}
\begin{document}
\section{Teste}
% including file with document divisions
\lstinputlisting{listingerror.tex}
\begin{lstlisting}
\section{Not to show in Tree view}
\begin{tabular}
\end{lstlisting}
\end{document}
File "listingerror.tex"
\chapter{chap1}
\section{sec1}
\subsection{subsec}
\subsubsection{subsec}
\paragraph{par}
To understand the problem just look at the images below. The first shows the Winedt 9 tree view of the document structure without the VerbatimPlus
installed. It´s the known problem of Winedt not working right with verbatim-like environments like lstlisting
The second image shows the same file but now with the VerbatimPlus
installed. The problem is that the syntax highlight is correct, but the tree view is not. It´s gathering the content of the lstinputlisting
as real divisions of the document not considering it´s a verbatim environment.
I hope I made myself clear about the problem. What I want is have the correct tree view and corret highlight of the document in winedt. Anybody knows how to fix it?