+1
Without darkness, there are no dreams. -Karla Kuban
+1
Without darkness, there are no dreams. -Karla Kuban
Awsome! Thanks!
Without darkness, there are no dreams. -Karla Kuban
Found a work-around. Apparently, any role specified will be remembered, whereas the All Roles (which is blank), will not. So, select advanced search and choose all three Beginner, Intermediate, and Advanced. This should cover all articles, but does not, so this is an incomplete work-around, but four out of five (pages) ain't bad.
Without darkness, there are no dreams. -Karla Kuban
I must have VB selected as preferences, and although VB doesn't have to be the default, some default must be set to see this bug. Type in some search criteria that, when you bypass the default preferences and choose All Roles, the search criteria will return more than one page of results. When a subsequent page number is clicked (or the next or previous page links are clicked), the default role will be restored. In my case, having VB preselected as the role, and searching for VPN under all roles, I have five pages of results but can not view any but the first page. When I select any page other than the first displayed result, the VB role is re-applied, reducing the results to none. When I reapply the All Roles rule, it returns me to page one of the results, and I'm stuck with no way to view any of the other results. Hope that made sense. Feel free to contact me if you need more details. -knockNrod
Without darkness, there are no dreams. -Karla Kuban
Sorry for being a PITA, but could you slightly update the sidebar-left CSS class to swap the padding and margin between left and right? .sidebar-left { float:left; width:190px; background-color:#FFFFEF; margin: 5px 15px 15px 3px; padding: 8px 10px 10px 8px; border: 1px #FFCC66 solid; border-radius:10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); }
Without darkness, there are no dreams. -Karla Kuban
Thanks for the subtle hint. I wouldn't have thought to specify lang="text". :)
Without darkness, there are no dreams. -Karla Kuban
I understand. I went back and forth a couple times writing the article. In the end, I remembered something I learned about typesetting from the perspective of an editor: four fonts and two colors is enough. (Fonts here includes weight, point size, and italics -- extremely minimalist.) Any deviation should have a compelling justification. The reasoning is that the article should allow the reader to focus on the content, put them in the zone. Any deviation at all (including the four fonts and two colors) draws attention at the expense of pulling the reader out of the zone. (Note this doesn't preclude more, it's just that when you see more you should consider it the editorial equivalent of a code-smell.) I'm not saying that this opinion is right, but I've never heard a compelling contending argument. Hey, newspapers and magazines were successful for hundreds of years -- they must have learned some useful lessons.
Without darkness, there are no dreams. -Karla Kuban
Oh. Well, thanks for the heads up, but I actually did give it a cursory read before I published my article. A good thing, too, because I was initially colorizing the code within the pre blocks using the CSS classes. Manually. :doh: As for InTouch, we often don't get to choose. When we do choose, we go with Windows Forms. But sometimes our customers buy our furnace and insist on integrating our Level 2 HMI within their existing SCADA system.
Without darkness, there are no dreams. -Karla Kuban
You need to pay more attention to the discussion. We're not talking about the pre blocks. Those need to be colourized, where the colour adds a great deal to the clarity of the reader. By contrast, the code tag is for marking, as I said, usage of code within the article text.
Without darkness, there are no dreams. -Karla Kuban
Hmm. Have you read it? Nothing there about the code tag accepting a language attribute. The pre tag does, but I already knew that. I really don't think colourizing article text is a good idea, either. Multi-coloured text will make it look like a rainbow spilled on it. I'll just rewrite my article to avoid "Of" and "String" so I don't have to deal with the problem. I do believe this is a bug, though. This type of colourizing should be for code, not for article text. IMHO, the code tag is should color article text to add clarity to the content. For example, if my article is about a text formatter and I have a variable or object called "read", I want to avoid the confusion created by this text: "You can read in the code where the paragraph
is now read
." When articles apply all the color-coding -- far from adding clarity -- they actually take away from the article by over-focusing the reader's attention on the colors, pulling the reader out of the context of that article.
Without darkness, there are no dreams. -Karla Kuban
:-O Oh. Thanks. I didn't know the code blocks had a language attribute.
Without darkness, there are no dreams. -Karla Kuban
Wow, I didn't even realize you had a colourizer for article text. Could be I'm wrong, but something's amiss with this: Dictionary(Of String, BasePiece)
Why did String get set off?
Without darkness, there are no dreams. -Karla Kuban
Your colourizer is stumbling over arrays.
Private Sub InteropIsothermControl_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
'Retrieve our array of temperatures from our data access layer.
Dim IsothermColors As Double(,)
If Me.DesignMode Then
IsothermColors = New Double(,) {{0, 0, 0, 0}, {0, 0, 0, 0}, {0, 0, 0, 0}}
Else
IsothermColors = IsothermDataProvider.GetIsothermTemperatures()
End If
Check out the spans on the zeros. Only the last in each row is properly colourized.
Without darkness, there are no dreams. -Karla Kuban
Y'nes guys are the greatest! :-D
Without darkness, there are no dreams. -Karla Kuban
Yes, I know that. And if you'll read the article, you'll see why this isn't possible. That's one of my points! :^)
Without darkness, there are no dreams. -Karla Kuban
Segments that could be dynamically collapsed/expanded would be over the top fantastic. But what I need is something that mimics it. Here's what I'm after: I'm using a tool that auto-generates code. My article isn't focusing on explaining the auto-generated code, but the stuff that's added to it. As such, the reader will find the collapsed properties and methods useful in orienting themselves within the overall code. What's not helpful is displaying the mountain of code that's in the collapsed segment. What I can do now is something like this:
<pre lang="whatever">
...
<span class=tiny-text>[+]</span> <span class=box style=font-size:10pt>Public Property MyProperty...</span>
...
</pre>
Notice that I've left off the quotes. You have to leave them off because the <pre> tag processing adds them back automatically. As a direct result, though, you can't use multiple classes. The real problem, though, is that the box class is too large cuts into the code line above it. Again, if there were a class like code-collapsed, you could actually place code into it that could, for now, be marked invisible, but later could be made dynamic to allow the curious reader to expand and collapse.
Without darkness, there are no dreams. -Karla Kuban
Nevermind about the sidebars for call-outs. I kept using "style:" instead of "style=" for setting width. I'd still like to have a collapsed code style because of the munging of the formatting tool.
Without darkness, there are no dreams. -Karla Kuban
Could we get maybe the below two CSS styles defined for articles? I'd like to use some call-outs like they do in Reader's Digest. I don't want to use the "nav-right-sidebar" because call-outs shouldn't be tied to the layout of your hosting interface. You have a call-out style defined, but it doesn't have any width. Also, is it possible to create a "code-collapsed" style? I want to be able to display collapsed segments of code so the user can orient themselves within a segment of auto-generated code (by the MS InterOp Toolkit). I can get close with a span style set to box, but the padding is causing overlap with the line above. .right-sidebar { float:right; width:190px; background-color:#FFFFEF; margin: 10px 7px 15px 15px; border: 1px #FFCC66 solid; border-radius:10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); } .left-sidebar { float:left; width:190px; background-color:#FFFFEF; margin: 10px 7px 15px 15px; border: 1px #FFCC66 solid; border-radius:10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); }
Without darkness, there are no dreams. -Karla Kuban
Never tried creating a tight box in CSS before. It's hard. In the mean time, could we get maybe these two defined for article styles? .right-sidebar { float:right; width:190px; background-color:#FFFFEF; margin: 10px 7px 15px 15px; border: 1px #FFCC66 solid; border-radius:10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); } .left-sidebar { float:left; width:190px; background-color:#FFFFEF; margin: 10px 7px 15px 15px; border: 1px #FFCC66 solid; border-radius:10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -moz-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); -webkit-box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); } You'll notice that the right-sidebar is the same as nav-right-sidebar, but it's defined for another use. Separating them allows you to later make article-consistency independently of your hosting controls. If I can figure out how to do a code-collapsed style, I'll get back to you. (I can't believe how difficult this is.)
Without darkness, there are no dreams. -Karla Kuban
I did try the callout, but IIRC, it doesn't have a width. I can keep trying different combinations, but what would really tickle my fancy is a nav-left-sidebar. I like the subtle background change, rounded corners and shadow, but the nav- part makes me think it might not be a good idea. How about a right- and left-sidebar? They should be almost cut & paste! A code-collapsed like you're box style, but with padding and margins better adjusted to match how collapsed code looks in Visual Studio would be pretty great, too. I can upload my own boxed-plus sign icon. Let me look at this again tomorrow and I'll try and get more specific style definitions. Thanks!
Without darkness, there are no dreams. -Karla Kuban