How do i include "sample code" in my article content - drupal

I am building a coding tutorial website using the Drupal platform. I want to display my sample code in a fixed non-line break block.

There is CKEditor CodeSnippet, which has an integration module.

Related

Is there a centralised resource for building views in Wordpress admin?

Currently creating some Gutenberg blocks, and some of them will have a fairly standard admin interface (no need for much/any custom css).
Are there any reference materials for using the core WP Admin styles to build component interfaces? This is for the admin area only, I've had a look and the only references I've found online are quite dated (pre-Gutenberg).
The tutorial "Building a custom block editor" in the Developer Docs may be a good place to start. This tutorial takes you through building your own "block editor" and uses all the common modern UI components. You could expand on this tutorial to create your Admin UI/settings page for your plugin/global settings.
Alternatively, if you are looking to add controls specific to your blocks in the Block Editor UI, the Settings Sidebar might be of interest as well as the creating a Sidebar tutorial. This helps maintain a consistent UI experience for Users if the settings are per block.

Changing the block layout

New to Drupal; Went through some tutorials. I understand the concept of content types and blocks. I have installed the Nexus theme. The only way I know to add content is through content types and blocks.
I want to change the block layout for each page, but I am stuck here...
Welcome to the StackOverlow community
You could start on https://www.drupal.org/docs/8/theming.
If you want to create different layouts on arbitrary pages of your site, using a graphical interface, you could have a look at the authoring experience demo from 8.6 to get an idea of what is possible with Drupal. But this module is not considered stable yet, it is still under development (you can check the progress at "Add a Layout Builder to core")
A popular module to work with layouts is Panelizer, but it has a learning curve. In the project page they recommend these tutorials:
Jackson River put together a tutorial explaining how to build landing pages using Panelizer.
The module was covered in Code Karate's Daily Dose of Drupal series.
OSTraining have a tutorial that also mentions creating alternative displays.
link
Drupalize.me updated their Panels series to introduce Panelizer (commercial training video)
link.
Tim Eisenhuth from PreviousNext put together an article explaining how to programmatically modify Panelizer displays link.
It seems that your are new to Drupal and are trying to build a whole website by yourself.
You can have an idea of the concepts and topics involved in creating a website with Drupal by reviwing the Acquia Certified Site Builder Exam Blueprint– D8.

WYSWYG web editor for Sharepoint

Is there any approach to have a simple WYSWYG free web editor (preferably drag'n'drop widgets -based) embedded or integrated into Sharepoint 2010?
I am shocked because this answer seems to not exist... So far I've found...
Plugins for integrating Sharepoint into Drupal, Joomla or Wordpress, but I want the opposite, using those interfaces to create content stored in Sharepoint, without having to export HTMLs and adapting them to SP arquitecture and metadata. If not, I cannot even find any way to export a Wordpress/Drupal site into Sharepoint.
Web content rich editor: Am I doing something wrong is this just an html loader that does not edit a thing?
Webparts: all seem to be costly, and I am not sure there even exists a nice one for that concrete task
Could somebody point me to the most optimal solution for non-tech users using this feature? Thank you
By the way, is there any public web part repository from microsoft. Even searching that in google does not throw any interesting info..
Most public, open source projects for Microsoft can be found at http://www.codeplex.com/.
Regarding your requirement, if I understand correctly, you want to have a way to store content in SharePoint for display in a drupal or other CMS. The content should be in HTML format. If I understand you correctly, the easiest way to do this is to create a basic SharePoint list, add a multiline column and set the type of text to Enhanced rich text (Rich text with pictures, tables, and hyperlinks). When you add an item to the list, the form will include a form element that has a WYSWYG editor.
I've integrated SharePoint with Linux before using Curl. It's not easy, but can be done.

Simple WYSIWYG input for Drupal input

I want to add basic WYSIWYG functionality to Drupal 6. It does not have to be bleeding edge.
I have found about 150 blogs and posts with options and an equal about of issues and problems
Can somebody point me to the easiest solution?
Easiest solution IMO is to use the WYSIWYG api to include TinyMCE.
You will need:
WYSIWYG dev release (supports new TinyMCE)
TinyMCE main package
The WYSIWYG module has an excellent administration screen to which you can turn buttons on and off with a simple tick box. I also prefer TinyMCE due to it's small library and therefore fast speed on browsers.
For file uploading and integration with the WYSIWYG, I use:
IMCE
IMCE Wysiwyg bridge
Which I find super easy, and business users seem to have no issues either. Supports image resizing and thumbnail generation
FCKeditor has been deprecated in favor of CKEditor. CKEditor also has a pay-for file manager addon called CKFinder.
CKEditor is a good choice. CKEditer can integrate with IMCE for file uploading as well as CKFinder.
FCKeditor and TinyMCE are both good, simple choices.
I finally got it working with this combination of modules.
TinyTiny MCE – text editor
Tiny MCE - js
IMCE – image uploader
I had a good blog with the recipe for setup, but can't find it today. :(

Image gallery for ASP.NET

Does anyone have a suggestions for a superb cool image gallery that I can use for a website I am creating?
I'm assuming that by "superb cool" you're going to want a slick, "web 2", responsive client-side interface.
I would suggest you use a javascript library such as jQuery, and look for an image gallery plugin for it. There are a ton of them out there, for example: http://speckyboy.com/2009/06/03/15-amazing-jquery-image-galleryslideshow-plugins-and-tutorials/
You might look at the silverlight examples at http://www.silverlight.net/community/samples/silverlight-samples/
http://cutesoft.net/ASP.NET+Image+Gallery/
We use this one. You can modify many functions by changing the js, css and template files.
Gallery Server Pro is an ASP.NET open source digital asset management and web gallery application. It is built as a single user control you can drop into your existing application.
Disclaimer: I am its creator and lead developer.
To display they nicely on the page you can use jQuery FancyBox.
http://fancybox.net/home

Resources