I have a C# solution that contains unit tests automatically generated from a .csv file via text templates.
The .csv file is a nice table for any team member to refer to, and serves as living documentation of the system.
We're running TFS 2015 and I understand that Markdown can be used in conjunction to provide clear system documentation.
Is it possible to use Markdown to display the contents of a .csv file (stored on the TFS server) within a table? So that if the .csv file is edited, the Markdown page reflects this?
For now, it's impossible. Detail info about Markdown page in TFS, please refer this tutorial: Markdown guidance
I have created a uservoice for you, you can vote up for it and TFS admin will kindly review the suggestion.
Show contents of .csv file in Markdown
https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/17749084-show-contents-of-csv-file-in-markdown
you can use dbeaver that will create a markdown table of your query result
click on export data and than:
next next
and in Output section check Copy to clipboard
click next and at the end click proceed
now you can copy your markdown text saved in your clipboard (this is the place where the system store data once you hit CTRL+C) insiede your markdown file
Related
I am creating a pdf document using RMarkdown in RStudio. The Knit do not create properly the fourth page. The page number on the foot still in the mean of on list at the botom of the page, and the text "desapears", even a new page is created but the text is not rendered.
I have just rolling back to 1.8
install.packages("devtools")
library(devtools)
install_version("rmarkdown", version = "1.8")
Is there any adjust in RStudio to avoid this issue ?
HTML and WORD make the report correctly using the same .Rmd file
I created a custom style in Content Editor Web Part by following this article: SharePoint 2010 XSLT date formatting and I achieved the desired result. But now I want to add paging to this new style. For adding paging I followed several articles but failed to achieve the result. I am a beginner in XSLT and cannot make out how exactly I can add paging in my custom style.
For paging I followed below articles but I don't have idea how can I combine the feature of paging with above custom calendar style. Any help is appreciated.
SharePoint 2010 Content Query Web Part with paging
Retro-fitting existing XSL Stylesheets with the Paging Controls
OOTB SharePoint CQWP Paging - CodePlex
Finally !! I did it myself. Following is what I executed:
I Opened SPD and copied ContentQueryMain.xsl and ItemStyle.xsl from XSL Stylesheet folder to a custom folder, while keeping both default xsl files unchanged.
I copied the xsl code and css code given in this article SharePoint 2010 XSLT date formatting to create the customized event calendar "Upcoming Events" (as shown in article) to my copied ItemStyle.xsl file. (Read the whole article and you will understand how you can perform this step).
Download: ImtechContentQueryWebPart.wsp custom web part from this link: http://imtech.codeplex.com/ [This web part is a custom Content Query Web Part through which you can apply your own xsl files).
Install the ImtechContentQueryWebpart to your SharePoint server and activate it through site collection features in Site Settings.
Now go step by step and make changes again to your copied ItemStyle.xsl and ContentQueryMain.xsl files as explained in this article: Retro-fitting existing XSL Stylesheets with the Paging Controls
The author in the article referenced in point 5 has pasted the code below
<xsl:template name="Default" match="*" mode="itemstyle"> Instead a I posted the code below this line
<xsl:template name="EventDisplay" match="Row[#Style='EventDisplay']" mode="itemstyle">
The above line having EventDisplay you will find in your copied & edited ItemStyle.xsl file. Simply search the term EventDisplay and you will get it.
Finally insert the Imtech Content Query Web Part to your page and copy the path of copied ItemStyle.xsl and ContentQueryMain.xsl files. Paste these paths as shown below in first image:
And the final result you get is: [*Please note the Leave Type and Click Here is appearing due to my own customized code in ItemStyle.xsl. Rest the output is same as shown in article referenced in point 2.]
I want to restrict my file browser to displaying only the types of file I specify, e.g. .txt files only. The only relevant snippets of a code I found are like the following:
fileInput("in_file",
"Input file:",
accept=c("txt/csv", "text/comma-separated-values,text/plain", ".csv")
However, this does't filter the files showing in the browser to just .txt and .csv. Any ideas?
As far as I understand, that's the right way to do it. If you view your app in the RStudio viewer it wouldn't do anything, but in a browser it should. I'm using Chrome and I just ran that code and it did in fact only show me txt and csv files.
Of course the user can still choose to view other files by going to the little select box and choosing to view all files, but they have to consciously choose to do that. By default only csv and txt files will be shown
I'm working on a Django app where the user uploads a space/tab/comma delimited text file. I display the text in a browser and the user can then interactively parse columns of delimited values which get highlighted with css as they change the settings. (Only a sample is displayed not the whole file!)
To highlight the selections I insert html/css code in and around the text but have to 'mark_safe' the text to get the html/css to render. I assume this opens security issues as even I, a complete noob could insert html in my input file and get it to render.
My Question:
Is there something I can use to strip html out of the text file immediately after I've uploaded it and before I render it in the browser? Would stripping '<' and '>' out be enough? What about something to disable .js if required?
I understand there are other well documented security measures I can take regarding file uploads. However I'm after a solution to my specific issue relating to me 'marking_safe' the input text I then render to the browser.
Django already has Automatic HTML escaping for this. Take a look at the link I posted in the docs. Hope this helps.
Hey everyone, I would appreciate a pointing in the right direction with the problem I'm having. In short, I'm working on an application that will create PDFs using TinyMCE and ColdFusion 8. I have the ability to create a PDF by just entering in text, pictures, etc. However, I want to be able to import an html template and insert it into the TinyMCE .
Basically, I have a file directory code snippet that lets me browse through my 'HTMLTemplates' folder, and am able to select an HTML document. Now, I want to be able to take all the code from that selected HTML document and insert it into my TinyMCE box. Any tips on how I might do this, maybe?
Thanks!
If I understood you correctly, you already have a TinyMCE plugin which pops up a window and allows you to browse the certain directory using existing cfm page which you render within the popup window. Right?
If not, you should start with this. Not sure how easy it is done in current version, but in the older TinyMCE I've created the custom upload plugin (needed to track the site security permissions for current user) pretty quickly.
Next, I can see two quick ways to pass the server file contents to the client-side:
Make it available via HTTP so you can make the GET request and read contents into the variable.
Output it on the page using CF (say, on form submit when file selected) and grab using JavaScript.
I'd personally tried the second option. After you grab the text into the variable you can put it into the TinyMCE using it's API.
It can be as simple as output escaped text into the hidden div with known ID and read it using DOM operations (assuming that there is cfoutput around):
<div id="myTemplate">#HTMLEditFormat(myFileContents)#</div>
Also you can output the text directly into the JavaScript variable (of cource, with accurate escaping), maybe like this.
<script type="text/javascript">
var text = '#HTMLEditFormat(myFileContents)#';
</script>
Most advanced and possibly better for performance (and definitely "cooler") way is to use the concept of script tags as data containers, like this:
<script type="text/plain">
#HTMLEditFormat(myFileContents)#
</script>
Last time I've seen this in Nadel's blog, I think. Read it, pretty interesting.
Hope this helps.