I'm trying to learn how to use .dtx files, docstrip etc to produce both package code and documentation from a single file. My primary source of information so far has been Joseph Wright's model dtx file and the accompanying blog post.
I've got started allright, and I can successfully output some code to the style file as well as documentation for that code in a pdf. However, I'd like the pdf to not contain the actual implementation - at least not in the same place as where I describe my macros. However, I still want to keep documentation and implementation together in the .dtx file.
After reading the The doc and shortvrb packages (pdf, link from Google search) I've tried adding \OnlyDescription to both the preamble and the document of the driver part of the .dtx, but it didn't make any difference (that I could observe in my pdf, anyway).
I'd be perfectly fine with (almost prefer) delaying the output of the verbatim package implementation to the very end of the documentation, if that's possible. However, it is not a requirement - I mainly want to ensure that the code is not intermingled with the documenation text in the pdf.
Example
I have the following few lines in my .dtx file (ignore the text - it's in Swedish, anyway...)
%\section{Paket som används}
%\textsf{fstil} använder sig av funktionalitet från följande paket:
%\begin{description}
%\item[\textsf{fontenc}, med option \textsf{T1}] Använder den modernare teckenkodningen T1, vilken t.ex. underlättar för specialtecken som åäö.
% \begin{macrocode}
\RequirePackage[T1]{fontenc}
% \end{macrocode}
%\end{description}
In my pdf, this outputs as
Paket som används}
fstil använder sig av funktionalitet från följande paket:
fontenc, med option T1 Använder den modernare teckenkodningen T1, vilken t.ex. underlättar för
specialtecken som åäö.
1 \RequirePackage[T1]{fontenc}
I'd like to either move the last line, with the verbatim code, to the end of the document, or remove it completely.

texdoc <pkgname>to look at the output; almost any package that can deliver documentation as latex output will have a.dtxfile in the source area of tex live. – barbara beeton Jan 22 at 16:05\StopEventually? This is usually used to mark the end of the 'user' part of the documentation, as long as\OnlyDescriptionis also set in the preamble of the driver part of the.dtx. ('Eventually' here is a mistranslation, as the intent was more '\StopPerhaps`.) – Joseph Wright♦ Jan 28 at 21:46